node-make-asset-pipeline

An asset pipeline which retrieves assets depending on makefile commands when a watched modules has been updated

npm install node-make-asset-pipeline
5 downloads in the last month

Asset middleware

This middleware is intended to be used on development in a browser environment Each time a request for an asset is coming, the make command for the specific asset ( convention naming ) is executed

Set up express server

var app = express.createServer(
     require('node-make-asset-pipeline')({asset: 'asset_folder'})
);

Create makefile

In order to work, each command must output a file with the same name as the command

Example

jquery:

ender build jQuery --output ./assets/jquery --debug 

underscore:

ender build underscore --output ./assets/underscore --debug 

ember:

cd ~/pathto/ember.js/; \
  rake clean; \
  rake 

app:

cp -pr lib/app.js assets/app.js

asset_folder

jquery.js
jquery.js
ember.js

npm loves you