From 1b470fd0a5051bbc22ef16562d1d7ab120326a1b Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Fri, 4 Mar 2016 02:28:07 -0800 Subject: [PATCH] Rebuild on watch --- stages/3/package.json | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/stages/3/package.json b/stages/3/package.json index d4047ce..21fb42b 100644 --- a/stages/3/package.json +++ b/stages/3/package.json @@ -3,7 +3,9 @@ "version": "1.0.0", "description": "Like GitHub, but funkier.", "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": { "type": "git", @@ -14,5 +16,8 @@ "bugs": { "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" + } }