pn

purs-node

Runs purescript output without hassle.

Showing:

Popularity

Downloads/wk

0

GitHub Stars

6

Maintenance

Last Commit

1mo ago

Contributors

0

Package

Dependencies

1

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

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 is output
  • --fn - function to run, default is main

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, default false
  • --deps - watch node_modules dependencies, default false
  • --poll - for fs polling, when normal fs watching doesn't work, default false
  • --interval - interval for polling in milliseconds (default: 1000)
  • --script - run this relay script instead of directly running the target purs output module. Absolute path to script running purs output will be passed as the first argument to the relay script, the rest arguments will follow.

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.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100