-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
93 lines (76 loc) · 2.16 KB
/
Makefile
File metadata and controls
93 lines (76 loc) · 2.16 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
.PHONY: all
all: help
.PHONY: help
help:
@echo z:t development tools
@echo
@echo usage:
@echo
@echo " make install -- install dev setup"
@echo " make clean -- delete node modules and venv"
@echo " make start -- run expo"
@echo " make start-local -- run expo with api set to local"
@echo " make start-nocache -- run expo with cleaned cache"
@echo " make start-android -- run expo and launch the android app"
@echo " make start-web -- run expo and launch the web app"
@echo " make lint -- run the linter"
@echo " make lint-fix -- run the linter and fix simple errors"
@echo " make test -- run tests with coverage"
@echo " make test-nocov -- run tests without coverage"
@echo " make test-debug -- run changed tests only, no coverage"
@echo " make updateSnapshots -- update the snapshots for tests"
@echo " make translations -- create or update translation files"
@echo " make publish-dev -- publish to dev channel"
@echo " make publish-prod -- publish to prod channel"
@echo
.PHONY: install
install:
npm install
.PHONY: clean
clean:
if [ -f package-lock.json ]; then rm package-lock.json; fi
if [ -d node_modules ]; then rm -rf node_modules; fi
if [ -d /tmp/metro-cache ]; then rm -rf /tmp/metro-cache; fi
if [ -f /tmp/haste-map-metro-* ]; then rm -f /tmp/haste-map-metro-*; fi
.PHONY: start
start:
npm start
.PHONY: start-local
start-local:
LOCAL_API=true npm run start
.PHONY: start-nocache
start-nocache:
npm start -- -c
.PHONY: start-android
start-android:
npm start -- -a
.PHONY: start-web
start-web:
BROWSER="./chrome.sh" npm start -- -w
.PHONY: lint
lint:
npx eslint *.js src/ --ignore-pattern tests/
.PHONY: lint-fix
lint-fix:
npx eslint --fix *.js src/ --ignore-pattern tests/
.PHONY: test
test:
npm run test
.PHONY: test-nocov
test-nocov:
npm run testNoCov
.PHONY: test-debug
test-debug:
npm run testDebug
.PHONY: updateSnapshots
updateSnapshots:
npm run updateSnapshots
.PHONY: translations
translations:
npx i18next
.PHONY: publish-dev
publish-dev:
npx eas update --channel dev
.PHONY: publish-prod
publish-prod:
npx eas update --channel prod