Skip to content
This repository has been archived by the owner on Feb 10, 2023. It is now read-only.

starlitcanopy/purescript-halogen-template

 
 

Repository files navigation

Halogen Template

This is a template for starting a fresh project with the Halogen library for writing declarative, type-safe user interfaces.

You can learn more about Halogen with these resources:

You can chat with other Halogen users on the PureScript Discourse, or join the Functional Programming Slack (invite link) in the #purescript and #purescript-beginners channels.

What does this offer over the original template

  1. This uses pnpm instead of npm as the package manager
  2. This uses esbuild for compile times 10x-100x times faster than webpack

Getting started

Prerequisites: This template assumes you already have Git and Node.js installed with pnpm somewhere on your path.

First, clone the repository and step into it:

git clone [email protected]:Mateiadrielrafael/purescript-halogen-template.git halogen-project
cd halogen-project

I personally use nix to install purescript and spago, but if you want to install them with pnpm run:

pnpm i -D purescript spago

Then install the rest of the dependencies with:

pnpm install

Building

To start the development server run the following command and then open a browser at localhost:8080:

pnpm run dev

To generate a production bundle run:

pnpm run build

Todo:

  • Zephyr
  • Hygen
  • All contributors
  • Github actions

About

Template project for getting started with Halogen

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dhall 70.2%
  • PureScript 24.1%
  • HTML 3.9%
  • JavaScript 1.8%