npm-for-brunch
v2.0.0
Published
browserify wrapper for npm modules in brunch projects
Downloads
6
Readme
Plugin For Brunch to add NPM module support
exposes the npm
function which does 2 things:
- plays nicely with Brunch's internal require function
- Adds for clarity of where a resource came from for debugging and collaborator sanity
# look in our NPM folder for Mithril.js
m = npm 'mithril'
# Oh look, in our brunch application code for a controller
Things_Controller = require 'controllers/things'
Not very configurable for now, but takes all of your node_modules that aren't brunch plugins and compiles them into /public/javascripts/bundle.js
You should probably include that in your index.html if you want to use it.
TODOs
caching in watch mode (md5 sum, yada yada yada) configurability