2.0.0 • Published 9 years ago

npm-for-brunch v2.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
9 years ago

Plugin For Brunch to add NPM module support

exposes the npm function which does 2 things: 1) plays nicely with Brunch's internal require function 2) 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