This is a simple template to play with websockets, IPC (libipc) communications and Halogen. Nothing serious.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Gary Burgess d3630e7a77
Initial commit
8 years ago
dist Initial commit 8 years ago
src Initial commit 8 years ago
.gitignore Initial commit 8 years ago
LICENSE Initial commit 8 years ago
README.md Initial commit 8 years ago
bower.json Initial commit 8 years ago
package.json Initial commit 8 years ago

README.md

purescript-halogen-template

This is a template for starting a fresh project using the purescript-halogen library for declarative user interfaces.

Prerequisites

This guide assumes you already have Git and Node.js installed with npm somewhere on your path.

In the PureScript ecosystem Bower is the most commonly used package manager and we'll be relying on it for this project, so if you don't already have it, you can install it like this:

npm install --global bower

Getting started

First clone the repo and step into it:

git clone https://github.com/slamdata/purescript-halogen-template.git my-halogen-project
cd my-halogen-project

If you already have a global installation of the PureScript compiler and Pulp, you can run:

npm install --production

If you want to install a local copy of the PureScript compiler and Pulp then just run the usual:

npm install

npm install is required for Halogen due to its dependency on virtual-dom. A postinstall script should have installed the remaining Bower dependencies.

Building

The project can now be built with:

npm run build

This will build the PureScript source code, run Browserify on the output, and produce a bundled JS file with virtual-dom and the PureScript-compiled JS as dist/app.js.

This is an alias for the Pulp command:

pulp browserify --to dist/app.js

If you open dist/index.html you should now have a basic working Halogen app.

That's pretty much it. Have fun with Halogen!