-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
60 lines (43 loc) · 979 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.PHONY: html js test doc docs
SRC = src
DOCS = docs
DEMO = demo
reset:
rm -rf elm-stuff
rm -rf tests/elm-stuff
rm -rf docs
build: test beautify build-directory js html mint doc
build-ci:
sh scripts/build-ci.sh
install:
elm-package install -y
pushd tests && elm-package install -y && popd
pushd demo && elm-package install -y && popd
mint:
zsh scripts/mint.sh
build-directory:
rm -rf docs
mkdir -p $(DOCS)
js:
pushd demo && elm-make App.elm --output ../$(DOCS)/app.js
test:
elm-test
beautify:
elm-format src/ --yes
elm-format demo/ --yes
html:
cp $(DEMO)/index.html $(DOCS)/index.html
cp $(DEMO)/styles.css $(DOCS)/styles.css
doc:
elm-make --docs=documentation.json
meta:
cd scripts && python -B convert-package.py
generate:
cd scripts && python -B generate_vocabulary.py
cd scripts && python -B generate_translation.py
diff:
elm-package diff
start:
cd docs;http-server -p 7000 -c10 -o
pre-release: meta doc build
sh scripts/pre-release.sh