PackScript is a powerful open source (MIT license) resource build system that combines, minifies and transforms your Javascript, HTML and CSS files based on Javascript configuration files.
To install:
npm install packscript
To run:
./node_modules/.bin/packscript
For command line options:
./node_modules/.bin/packscript -h
For a full reference, see http://packscript.com.