pack-js

0.0.5 • Public • Published

packjs

packing javascript file to one file.

Install

Use npm

sudo npm install -g pack-js

Usage

  1. Write include file path (relative) in each heads of javascript files.
console.log('foo');
// @include ./module.js
console.log('bar');
  1. Run command.
$ packjs sourcefile.js destination.js
  1. Output like this.
console.log('foo');
function someModule(){};
console.log('bar');
  1. 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

Package Sidebar

Install

npm i pack-js

Weekly Downloads

3

Version

0.0.5

License

MIT

Last publish

Collaborators

  • kikurage