-
-
Notifications
You must be signed in to change notification settings - Fork 140
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (44 loc) 路 1.17 KB
/
Copy pathMakefile
File metadata and controls
54 lines (44 loc) 路 1.17 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
## help: 馃挕 Display available commands
.PHONY: help
help:
@echo '鈿★笍 GoFiber/Docs Development:'
@sed -n 's/^##//p' ${MAKEFILE_LIST} | column -t -s ':' | sed -e 's/^/ /'
## install: 馃摝 Install dependencies
.PHONY: install
install:
npm install
## dev: 馃殌 Start development server
.PHONY: dev
dev:
npm start
## build: 馃彈 Build production site
.PHONY: build
build:
npm run build
## serve: 馃寪 Serve production build locally
.PHONY: serve
serve:
npm run serve
## spell: 馃摑 Run spell check on blog and website source
.PHONY: spell
spell:
npx cspell "blog/**" "src/**" --no-progress
## codespell: 馃摑 Run codespell on blog and website source
.PHONY: codespell
codespell:
codespell blog src --ignore-words-list "TE,te"
## markdown: 馃帹 Find markdown format issues (Requires markdownlint-cli2)
.PHONY: markdown
markdown:
npx markdownlint-cli2 "blog/**/*.md"
## lint: 馃毃 Run all lint checks (spell + markdown)
.PHONY: lint
lint: spell codespell markdown
## format: 馃帹 Fix code format issues
.PHONY: format
format:
npx prettier --write "src/**/*.{ts,tsx,scss,css,json}" "blog/**/*.md"
## clean: 馃Ч Clean build artifacts
.PHONY: clean
clean:
rm -rf build .docusaurus