-
Notifications
You must be signed in to change notification settings - Fork 436
/
Copy pathfrontend.mk
36 lines (29 loc) · 1.03 KB
/
frontend.mk
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
.PHONY: frontend-format
$(call help,make frontend-format,"format the frontend code")
frontend-format: node_modules/.uptodate
@yarn format
.PHONY: frontend-checkformatting
$(call help,make frontend-checkformatting,"crash if the frontend code isn't correctly formatted")
frontend-checkformatting: node_modules/.uptodate
@yarn checkformatting
.PHONY: frontend-lint
$(call help,make frontend-lint,"lint the frontend code")
frontend-lint: node_modules/.uptodate
@yarn lint
.PHONY: frontend-typecheck
frontend-typecheck: node_modules/.uptodate
@yarn typecheck
.PHONY: frontend-tests
$(call help,make frontend-tests,"run the frontend tests")
frontend-tests: node_modules/.uptodate
@yarn test
build/manifest.json: node_modules/.uptodate
@yarn build
node_modules/.uptodate: package.json yarn.lock
@echo installing javascript dependencies
@yarn install
@touch $@
dev: build/manifest.json
devssl: build/manifest.json
functests: build/manifest.json
sure: build/manifest.json frontend-checkformatting frontend-lint frontend-typecheck frontend-tests