An tiny, opinionated command-line build tool for creating duet app bundles.
$ npm install --save-dev duet-build
$ duet-build
When you run the command with no arguments, it will attempt to bundle src/index.js
and output the bundled index.js
and a bare-bones index.html
file into the public/
directory.
The project is bundled with browserify, with the babel ES2015 and uglify transforms applied.
--entry="path/to/index.js"
- path to the file you want to bundle.--out="output/path"
- path to the directory you want to output to the bundle to.--title="App Title"
- the<title>
tag inindex.html
will contain the argument's value.--debug
- by passing this flag flag, browserify will run in debug mode and the uglify transform will not be applied.