npm-for-brunch

2.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i npm-for-brunch

Weekly Downloads

0

Version

2.0.0

License

ISC

Last publish

Collaborators

  • ondreian