-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
59 lines (45 loc) · 1.26 KB
/
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
Y=yarn -s --prefer-offline
.PHONY: install
install: .yarn.INSTALLED .yarn.examples-optimized.INSTALLED .yarn.elm-book.INSTALLED
.yarn.INSTALLED: package.json yarn.lock
${Y} install
@touch $@
.yarn.examples-optimized.INSTALLED: ./examples-optimized/package.json ./examples-optimized/yarn.lock
yarn --cwd=examples-optimized install
@touch $@
.yarn.elm-book.INSTALLED: ./elm-book/package.json ./elm-book/yarn.lock
${Y} --cwd=elm-book install
@touch $@
.PHONY: elm-examples
elm-examples: install
cd examples && elm reactor & yarn --cwd examples-optimized start
.PHONY: elm-reactor
elm-reactor:
cd examples && elm reactor
.PHONY: elm-tests
elm-tests:
yarn elm-test
.PHONY: ts-tests
ts-tests: install
./bin/test-ts.sh
.PHONY: ci-e2e-test
ci-e2e-test:
make elm-examples & make ts-tests
.PHONY: elm-live
elm-live: install
yarn elm-live --no-server
.PHONY: elm-analyse
elm-analyse: install
yarn elm-analyse
.PHONY: preview-docs
preview-docs: install
yarn elm-doc-preview
.PHONY: elm-book
elm-book: install
${Y} --cwd=elm-book parcel --dist-dir=dist-book --open --port=8086 index.html
.PHONY: elm-book-build
elm-book-build: .yarn.elm-book.INSTALLED
${Y} --cwd=elm-book parcel build --dist-dir=../docs --public-url ./ index.html
.PHONY: publish
publish:
elm publish