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;// @include ./module.jsconsole;
- Run command.
$ packjs sourcefile.js destination.js
- Output like this.
console;{};console;
- 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