-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
80 lines (60 loc) · 1.61 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
build-docker:
docker build --tag=techmatters/terraso_web_client --file=Dockerfile .
clean-docker:
docker ps --filter name=terraso_web_client* -aq | xargs docker stop
docker ps --filter name=terraso_web_client* -aq | xargs docker rm
setup-git-hooks:
@cp scripts/git/pre-commit.sample .git/hooks/pre-commit
@cp scripts/git/commit-msg.sample .git/hooks/commit-msg
@echo "git hooks installed"
pre-commit: lint
run:
./scripts/docker/run.sh \
"--name terraso_web_client -p 3000:3000" \
"npm start"
run-build:
./scripts/docker/run.sh \
"--name terraso_web_client_build -p 3000:3000" \
"npm run build && npm run build-serve"
build:
./scripts/docker/run.sh \
"--name terraso_web_client_build" \
"npm run build"
format:
npm run format-js && npm run format-css
lint:
npm run lint-js && npm run lint-css && npm run check-ts
format-css:
npm run format-css
format-js:
npm run format-js
lint-js:
npm run lint-js
lint-css:
npm run lint-css
check-ts:
npm run check-ts
test:
./scripts/docker/run.sh \
"--name terraso_web_client_test" \
"npm run test"
test-a11y:
./scripts/docker/run.sh \
"--name terraso_web_client_test" \
"TEST_A11Y=true npm run test"
test-coverage:
./scripts/docker/run.sh \
"--name terraso_web_client_test_coverage" \
"npm run test-coverage"
localization-to-po:
./scripts/docker/run.sh \
"--name terraso_web_client_localization" \
"npm run localization-to-po"
localization-to-json:
./scripts/docker/run.sh \
"--name terraso_web_client_localization" \
"npm run localization-to-json"
npm:
./scripts/docker/run.sh \
"--name terraso_web_client_npm" \
"npm $(command)"