-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (39 loc) · 1.14 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
SEED ?= "$$RANDOM"
FUZZ ?= "100"
.PHONY: start
start:
lamdera live
# TODO use `elm-test --compiler lamdera` instead
.PHONY: test
test:
gsed --in-place=.bak '/lamdera/d' elm.json
yarn elm-test-rs --seed=${SEED} --fuzz=${FUZZ} || true
mv elm.json.bak elm.json
.PHONY: test-long
test-long:
gsed --in-place=.bak '/lamdera/d' elm.json
yarn elm-test-rs --fuzz 10000 || true
mv elm.json.bak elm.json
.PHONY: test-watch
test-watch:
gsed --in-place=.bak '/lamdera/d' elm.json
yarn elm-test-rs --watch || true
mv elm.json.bak elm.json
.PHONY: test-watch-long
test-watch-long:
gsed --in-place=.bak '/lamdera/d' elm.json
yarn elm-test-rs --watch --fuzz 10000 || true
mv elm.json.bak elm.json
.PHONY: review
review:
gsed --in-place=.bak '/lamdera/d' elm.json
yarn elm-review || true
mv elm.json.bak elm.json
.PHONY: build-calculators
build-calculators: build-calculator-barter-price
.PHONY: build-calculator-barter-price
build-calculator-barter-price:
lamdera make src/Calculator/BarterPrice.elm --output docs/calc/barter-price.html
.PHONY: build-calculator-meta
build-calculator-meta:
lamdera make src/Calculator/Meta.elm --output docs/calc/meta.html