aboutsummaryrefslogtreecommitdiff
path: root/package.json
diff options
context:
space:
mode:
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"
+ }
+}