fillidefilla / elm-brunch-setup

Elm with Brunch (build tool) setup

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elm with Brunch (build tool) setup

A Brunch build tool setup for Elm 0.17.

Set up your own Elm-Brunch project

Set up your own project based on this repository. Just run the following command:

  • brunch new your-app-name -s gh:fabiofilli/elm-brunch-setup

  • cd your-app-name

  • npm install

  • elm package install

  • brunch watch --server

Now you should see Hello World! on http://localhost:3333/. Have fun!

Todo's

  • Create optimized production build for elm main.js

Further information

Elm - getting started

  • Install:
    • brew install elm on OS X
    • npm install -g elm on Linux, ...
  • More infos:

Brunch - getting started

  • Install (if you don't have them):
    • Node.js: brew install node on OS X
    • Brunch: npm install -g brunch
    • Brunch plugins and app dependencies: npm install
  • Run:
    • brunch watch --server — watches the project with continuous rebuild. This will also launch HTTP server with pushState.
    • brunch build --production — builds minified project for production
  • Learn:
    • public/ dir is fully auto-generated and served by HTTP server. Write your code in app/ dir.
    • Place static files you want to be copied from app/assets/ to public/.
    • Brunch site, Getting started guide

License and Copyrights

The MIT license

About

Elm with Brunch (build tool) setup

License:MIT License


Languages

Language:JavaScript 46.6%Language:HTML 39.1%Language:Elm 12.1%Language:CSS 2.3%