aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2016-09-04 21:21:11 +0200
committerJoris2016-09-04 21:21:31 +0200
commit973a039b54327df74396605410ea9abe19c8a4e7 (patch)
treec702564d17e0a490d56845027238eb4f231be785 /Makefile
parent62fee9133f36f655c1ed83e0c2e85394f9948bf5 (diff)
Upgrade to elm 0.17.1
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..daea513
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+all: build
+
+clean:
+ @rm -r node_modules >/dev/null 2>&1 || true
+ @rm -r elm-stuff >/dev/null 2>&1 || true
+
+install:
+ @npm install
+ @elm package install
+
+watch: kill-server launch-server watch-client
+
+# Build and launch
+# ----------------
+
+kill-server:
+ @fuser -k 8080/tcp || true
+
+launch-server:
+ @./node_modules/http-server/bin/http-server ./public -p 8080 &
+
+build:
+ @elm make src/Main.elm --output public/client.js || true
+
+watch-client:
+ @./node_modules/nodemon/bin/nodemon.js --watch src -e elm --exec 'clear && make build --silent'