0.1.2 • Published 10 years ago
commandify v0.1.2
commandify
Executes a command whenever the bundle is created.
package.json
{
"browserify": {
"transform": [ "commandify" ]
},
"commandify": "make all",
"dependencies": {
"commandify": "~0.1.0"
}
}
Or configure via JavaScript
commandify.cmd = 'make hello';
commandify.dir = __dirname + '/compile';
browserify()
.require(require.resolve('./makeify/main.js'), { entry: true })
.bundle()
.pipe(...);
Or configure via command line
COMMANDIFY_CMD='make all' COMMANDIFY_DIR='./compile' browserify -t commandify main.js ....
Installation
npm install commandify
API
generated with docme
License
MIT