-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (38 loc) · 1.04 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
SEED ?= "$$RANDOM"
FUZZ ?= "100"
.PHONY: watch
watch:
elmid --watched-folder=src src/DummyMain.elm
.PHONY: start
start:
lamdera live
.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:
yarn elm make src/Calculator/BarterPrice.elm --output docs/calc/barter-price.html