A simple Purescript project template using webpack and yargs for creating one-file exectuble node scripts with CLI.
- Install NPM's dependencies with yarn or npm:
$ yarn install
- Then bower's:
$ bower install
- Build the project
$ pulp build
-
Make sure you have
sed
andnode
installed and they are available in $PATH. -
Track changes to your project and have it automatically recompiled into an bundled executable node scripts:
$ ./node_modules/webpack/bin/webpack.js --watch
Webpack will bundle the script only when ./entry.js deps are changed.
Note: It works great with psc-ide.
- Your script is in under:
./dist/node.js
. It is already standalone & executable:
$ ./dist/node.js
Library is co-created and funded by λ-terms
See LICENSE file.