Installation (via NPM)
[sudo] npm install fuse -g
You need to install it globally, because it's not something that you can
require in your nodejs code. It's only a command line program.
Running tests (via NPM)
Tests are run using Mocha. You can also run
make test to run the tests.
On the command line
To run just once:
fuse -i path/to/main.js -o path/to/output.js
To watch a file for changes:
fuse -i path/to/main.js -o path/to/output.js -w
When watching, Fuse will automatically watch any referenced files for changes too, and recompile the output file upon any changes to reference files.
To compress the output using UglifyJS2:
fuse -i path/to/main.js -o path/to/output.js -c
To mangle the output using UglifyJS2:
fuse -i path/to/main.js -o path/to/output.js -m
To compress and mangle, and watch:
fuse -i path/to/main.js -o path/to/output.js -c -m -w
To lint with jshint before combining:
fuse -i path/to/main.js -o path/to/output.js -l