Commit 4da66ac9 authored by Cédric F.'s avatar Cédric F.

Use Makefile to build app

parent 73858ee4
Pipeline #24842664 (#18) failed with stage
in 53 seconds
/elm-stuff/
/public/lifechart.js
/mine.json
/mine.url
all: lifechart
lifechart: src/*.elm
elm-make src/Lifechart.elm --yes --warn --output public/lifechart.js
uglifyjs --mangle --screw-ie8 --output public/lifechart.min.js -- public/lifechart.js
rm public/lifechart.js
watch: src/*.elm
elm-test --watch
clean:
$(RM) -r public/lifechart*.js elm-stuff/
.PHONY: watch clean
#!/bin/bash -eux
cd $(dirname $0)
elm-make Lifechart.elm --warn --output lifechart.js
uglifyjs --mangle --screw-ie8 --output lifechart.min.js -- lifechart.js
[ -d dist ] || mkdir dist
cp -v index.html lifechart.min.js dist/
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment