Rebuild on watch

This commit is contained in:
Richard Feldman
2016-03-04 02:28:07 -08:00
parent 471168a243
commit 1b470fd0a5

View File

@@ -3,7 +3,9 @@
"version": "1.0.0", "version": "1.0.0",
"description": "Like GitHub, but funkier.", "description": "Like GitHub, but funkier.",
"scripts": { "scripts": {
"build": "elm-make FunkHub.elm --output elm.js" "build": "elm-make FunkHub.elm --output elm.js",
"watch": "npm run build && chokidar \"**/*.elm\" -c \"npm run build\"",
"install": "elm-package install --yes && npm run build"
}, },
"repository": { "repository": {
"type": "git", "type": "git",
@@ -14,5 +16,8 @@
"bugs": { "bugs": {
"url": "https://github.com/rtfeldman/elm-workshop/issues" "url": "https://github.com/rtfeldman/elm-workshop/issues"
}, },
"homepage": "https://github.com/rtfeldman/elm-workshop#readme" "homepage": "https://github.com/rtfeldman/elm-workshop#readme",
"devDependencies": {
"chokidar-cli": "1.2.0"
}
} }