-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
66 lines (56 loc) · 1.92 KB
/
Copy pathMakefile
File metadata and controls
66 lines (56 loc) · 1.92 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
.PHONY: lint typecheck build package-validate docs verify dev clean
CONCURRENTLY := npx concurrently
RIMRAF := npx rimraf
APP ?= gallery
lint:
npm run lint
typecheck: build
$(CONCURRENTLY) \
"cd autk-core && npx tsc --noEmit --skipLibCheck" \
"cd autk-map && npx tsc --noEmit --skipLibCheck" \
"cd autk-db && npx tsc --noEmit --skipLibCheck" \
"cd autk-plot && npx tsc --noEmit --skipLibCheck" \
"cd autk-compute && npx tsc --noEmit --skipLibCheck" \
"cd autk && npx tsc --noEmit --skipLibCheck" \
"cd gallery && npx tsc --noEmit --skipLibCheck" \
"cd usecases && npx tsc --noEmit --skipLibCheck"
build:
cd autk-core && npm run build
$(CONCURRENTLY) \
"cd autk-map && npm run build" \
"cd autk-db && npm run build" \
"cd autk-plot && npm run build" \
"cd autk-compute && npm run build"
cd autk && npm run build
package-validate: build
npm run validate:packages
docs:
$(CONCURRENTLY) \
"cd autk-core && npm run doc" \
"cd autk-map && npm run doc" \
"cd autk-db && npm run doc" \
"cd autk-plot && npm run doc" \
"cd autk-compute && npm run doc"
verify: lint typecheck
dev:
npm install
make build
$(CONCURRENTLY) \
"cd autk-core && npm run dev-build" \
"cd autk-map && npm run dev-build" \
"cd autk-db && npm run dev-build" \
"cd autk-plot && npm run dev-build" \
"cd autk-compute && npm run dev-build" \
"cd autk && npm run dev-build" \
"cd $(APP) && npm run dev$(if $(OPEN), -- --open=$(OPEN))"
clean:
$(RIMRAF) node_modules package-lock.json
$(CONCURRENTLY) \
"cd autk-core && $(RIMRAF) dist build node_modules" \
"cd autk-map && $(RIMRAF) dist build node_modules" \
"cd autk-db && $(RIMRAF) dist build node_modules" \
"cd autk-plot && $(RIMRAF) dist build node_modules" \
"cd autk-compute && $(RIMRAF) dist build node_modules" \
"cd autk && $(RIMRAF) dist build node_modules" \
"cd gallery && $(RIMRAF) dist build node_modules" \
"cd usecases && $(RIMRAF) dist build node_modules"