Skip to content

Chadtech/personal-elm-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HI THERE

This is my

Elm Gulp Browserify Boilerplate

Its basically a template development environment with all of my favorite dependencies. It also might be useful to look at, if you are learning how to use Elm.

How to get going..

> git clone https://github.com/Chadtech/elm-gulp-browserify-boilerplate new-project
> cd new-project
> npm install
> elm package install --yes
> gulp

then open up http://localhost:2978

This repo is organized as ..

distribution/             -- Your production-ready app
development/              -- Your development app
  index.html
source/                   -- Source files
  app.coffee              -- Loads your elm file, and handles ports
  Ports.elm               -- Javascript inter-operation ports
  Main.elm
  Util.elm                -- Functions that are generally useful
  Types/
  Styles/
    Main.styl
    p.styl
  Main/
    Init.elm
    Subscriptions.elm
    Update.elm
    View.elm
    Model.elm
    Message.elm
gulpFile.coffee
server.js

Distribution

To compile to distribution type into your terminal..

gulp distribution

It will run the js command without debug on. Its pretty sparse in what it does, but if you have your own dist operations, you can put them in that gulp task.

Elm Format

There is an Elm-Format task in this gulp file. Its not on by default, but you can switch to it by uncommenting a little code.

About

The beginning of all my Elm projects

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published