purs-node
v0.4.0
Published
Runs purescript output without hassle.
Downloads
2
Readme
purs-node
Runs purescript output without hassle.
NB! This tool doesn't compile your purs sources. It is just a simple wrapper around node/node-dev
to run compiled output in dev mode. It works like spago run but without compilation.
install
npm install purs-node [-g]
Run compiled App.Main
module:
purs-node [options] App.Main [args] --- [node args]
Options:
--output
- output dir, default isoutput
--fn
- function to run, default ismain
dev/watch mode
You need to install additionally:
npm install node-dev [-g]
Then run with watching for changes of required files:
purs-node-dev [options] App.Main [args] --- [node-dev args]
Dev options:
--cls
- clear screen on restart, defaultfalse
--deps
- watchnode_modules
dependencies, defaultfalse
--poll
- for fs polling, when normal fs watching doesn't work, defaultfalse
--interval
- interval for polling in milliseconds (default: 1000)
upstream
If you want to pass options upstream to node
or node-dev
put them after ---
. In case of node-dev
it will override preset defaults.
licence
MEAT.