Skip to content

lambdaterms/purescript-runnable-node-script-template

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

purescript-runnable-node-script-template

A simple Purescript project template using webpack and yargs for creating one-file exectuble node scripts with CLI.

Usage

  1. Install NPM's dependencies with yarn or npm:
    $ yarn install
  1. Then bower's:
    $ bower install
  1. Build the project
    $ pulp build
  1. Make sure you have sed and node installed and they are available in $PATH.

  2. 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.

  1. Your script is in under: ./dist/node.js. It is already standalone & executable:
    $ ./dist/node.js

Credits

Library is co-created and funded by λ-terms

License & copyrights

See LICENSE file.

About

Template for compiling Purescript project to one file executable node CLI.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 60.1%
  • PureScript 39.9%