-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (53 loc) · 1.2 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
# Be Quiet
MAKEFLAGS += --silent
# Lint CSS Using Stylelint
lint-css:
pnpm exec stylelint "src/**/*.css"
fmt:
pnpm exec prettier --write .
fmt-check:
pnpm exec prettier --check .
# Development
build:
rm -fr src/lighthouse/
pnpm exec parcel build "./src/**/*.html"
dev:
pnpm exec parcel './src/*.html'
dev-static:
@echo "Server running at http://localhost:4000"
python3 -m http.server 4000
docs-css:
pnpm exec tailwindcss \
--output "src/index.css" \
--content "docs/index.njk" \
--config "tailwind.config.js"
docs-css-w:
pnpm exec tailwindcss \
--watch
--output "src/index.css" \
--content "docs/index.njk" \
--config "tailwind.config.js" \
docs-html:
pnpm exec eleventy --input="docs" --output="src"
docs-html-w:
pnpm exec eleventy --input="docs" --output="src" --watch
readme: docs-html
pnpm exec prettier -w README.md
docs: docs-html docs-css fmt
docs-dev: docs-html-w
lhci:
rm -fr .lighthouseci/*
rm -fr .lhci/*
pnpm exec lhci autorun
node tools/render.cjs
lhci-upload:
pnpm exec lhci upload --target="temporary-public-storage"
lh-stats:
node tools/render.cjs
clean:
rm -fr .lighthouseci/*
rm -fr .lhci/*
fonts:
tools/fonts.sh install
fonts-update:
tools/fonts.sh update