According to PureScript.org
It’s fairly easy to get started with the grunt-init-purescript template
Then clone the template into a
.grunt-init folder using
We also need the PureScript compiler, which we can grab with cabal:
We can now install dependencies from npm and bower. There’s
a decent amount to be excited about in the output including
maybe to name a few.
Then grunt when we want to build:
The template project is more of a library project, where the
tests are what we want to run if we cloned the repo. As
Main module is in
tests/Test.purs and can be
grunt to build the project.
To build an executable (a node.js scraper for example) we can make a few changes.
First, we’ll make some changes to our test file.
and change the module name from
Starter.Kit.Example import to
Place two simple js files in
Now we will make a small modification to the Starter Kit file.
and rename the module to
Finally make some modifications to the Gruntfile and run