diff options
author | Joris | 2016-09-04 15:52:17 +0200 |
---|---|---|
committer | Joris | 2016-09-04 15:53:32 +0200 |
commit | 8714c3befcf3f9923cf72e8d992ba6d963c0e6e7 (patch) | |
tree | e5ab35a918a95cbfee2f90dc34f3fe57fac42593 /Makefile | |
parent | cda08750ac7cdd83e73c1110800bea39928ffed9 (diff) |
Upgrade to elm 0.17.1
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
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' |