aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
authorJoris2015-11-13 20:12:21 +0100
committerJoris2015-11-13 20:12:21 +0100
commiteef0cf46c150cd12e783aa8dc62f825a59757855 (patch)
tree892cc53729c0f61c050b75e39aaa252eb49d4590 /package.json
parent5af770bd99dbb57d78857236c054bc0a6dc4bdfd (diff)
Upgrade to elm 0.15.1 and use npm to build
Diffstat (limited to 'package.json')
-rw-r--r--package.json15
1 files changed, 15 insertions, 0 deletions
diff --git a/package.json b/package.json
new file mode 100644
index 0000000..afa017c
--- /dev/null
+++ b/package.json
@@ -0,0 +1,15 @@
+{
+ "devDependencies": {
+ "watch": "0.16.0",
+ "http-server": "0.8.5"
+ },
+ "scripts": {
+ "start": "npm run watch",
+
+ "watch": "npm run launch-server && watch 'npm run build-client --silent' src",
+ "build": "elm make src/Main.elm --output client.js",
+
+ "launch-server": "npm run kill-server && http-server ./ -p 8080",
+ "kill-server": "fuser -k 8080/tcp || true"
+ }
+}