Use elm-live for watch

This commit is contained in:
Richard Feldman
2016-03-04 03:25:52 -08:00
parent 3ea9c8d9d8
commit 1f6f7da6a1
2 changed files with 6 additions and 2 deletions

View File

@@ -1,6 +1,10 @@
Getting Started
===============
## Install Nodejs 4.0.0 or higher
http://nodejs.org
## Install Elm
Visit http://elm-lang.org/install to get set up.

View File

@@ -4,7 +4,7 @@
"description": "Like GitHub, but funkier.",
"scripts": {
"build": "elm-make FunkHub.elm --output elm.js",
"watch": "npm run build && chokidar \"**/*.elm\" -c \"npm run build\"",
"watch": "elm-live FunkHub.elm --open -- --output=elm.js",
"install": "elm-package install --yes && npm run build"
},
"repository": {
@@ -18,6 +18,6 @@
},
"homepage": "https://github.com/rtfeldman/elm-workshop#readme",
"devDependencies": {
"chokidar-cli": "1.2.0"
"elm-live": "2.0.4"
}
}