-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
62 lines (45 loc) · 967 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
61
62
BIN = ./node_modules/.bin
SRC = src
TEST = tests
BUILD = build
CSS = styles
HTML = src/index.html
build: clean build-directory html js css
ship: rebase test feature-test build push deploy
deploy:
cf push
push:
git push
rebase:
git pull --rebase
test: format
$(BIN)/elm-test --yes --compiler=$(shell pwd)/$(BIN)/elm-make
feature-test: build
./feature-tests.sh
keep-building:
$(BIN)/chokidar "$(SRC)" "$(CSS)" -c "make"
keep-testing: format
$(BIN)/elm-test --yes --watch --compiler=$(shell pwd)/$(BIN)/elm-make
format:
$(BIN)/elm-format --yes $(SRC) $(TEST)
clean:
rm -rf $(BUILD)
build-directory:
mkdir -p $(BUILD)
html:
cp $(HTML) $(BUILD)/index.html
js:
$(BIN)/elm-make --yes $(SRC)/App.elm --output $(BUILD)/elm.js
cp $(SRC)/native.js $(BUILD)/native.js
css:
cp $(CSS)/*.css $(BUILD)/
serve: build
$(BIN)/browser-sync start \
--server $(BUILD) \
--files $(BUILD) \
--no-ui \
--no-open \
--no-notify \
--port 8080
setup:
yarn