pack-js
v0.0.5
Published
packing javascript file to one file.
Downloads
10
Readme
#packjs
packing javascript file to one file.
##Install
Use npm
sudo npm install -g pack-js
##Usage
- Write include file path (relative) in each heads of javascript files.
console.log('foo');
// @include ./module.js
console.log('bar');
- Run command.
$ packjs sourcefile.js destination.js
- Output like this.
console.log('foo');
function someModule(){};
console.log('bar');
- If you run with
-w
option, then command run as watching mode and everytime you update file, do packing automaticaly.
$ packjs sourcefile.js destination.js -w