Packaged Distribution
Requirements
node.js (Ver. >= 8)
Usage
jc <options> <main file> [ -- <userargs> ]
Flags
-o <file>
Output file of bundled program or library file
-node
Set node path for standalone apps
-lib
Create a library that can be loaded by require
-min
Minify code (using builtin minifier - slow, high compression)
-jsmin
Minify code (using external minifer jsmin - fast, average compression)
-nobundle
Minification of input file only
-I <path>
Add source path
-top <path>
Add source root path
-json <file>
Load makefile in JSON format (see below)
-run
Run code only (no build)
-v
Increase verbosity level
-V
Print version number
-h -help --help
Print this help
JSON
{ include: string [], main:string, top:string, arguments: string [],
map: { "@module":"@modulemap"} [], output:string
options: {min:true|"jsmin",lib:boolean, verbose:number}}