blob: 573616dcb65c4d71528db025ca1c5cc2d6387058 (
plain)
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
|
HTML := cockpit.html mass-graduation.html admin-tools.html
SITES := $(addprefix dist/,$(HTML))
dist/%.html: %.html %.css dist/%.js
echo | pandoc --template $< --embed-resources --standalone > $@
dist/%.js: $(wildcard src/*.js)
.PHONY: mock dev prod check lint check-format format
mock:
npm run build:mock
scripts/update-env-srcs src/ mock
$(MAKE) $(SITES)
dev:
npm run build:dev
scripts/update-env-srcs src/ prod
$(MAKE) $(SITES)
prod:
npm run build
scripts/update-env-srcs src/ prod
$(MAKE) $(SITES)
check: check-types check-format lint
check-types:
npm run types-check
check-format:
npm run prettier-check
lint:
npm run lint
format:
npm run format
|