-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (45 loc) · 1.16 KB
/
Makefile
File metadata and controls
53 lines (45 loc) · 1.16 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
.PHONY: help
help:
@echo "make dev"
@echo " Run the dev server at http://localhost:8001/."
@echo "make css"
@echo " Make oatcake.min.css from oatcake.css."
@echo "make html"
@echo " Make HTML files that're built from parts."
@echo "make format"
@echo " Format the code nicely."
@echo "make checkformatting"
@echo " Check that the code is formatted nicely."
@echo "make validate"
@echo " Check that the code is valid."
@echo "make spell"
@echo " Run the spell checker."
@echo "make readme badges=yes version=1.0.0"
@echo " Update README.md with badges enabled and version number 1.0.0."
@echo "make help"
@echo " Show this help message."
.PHONY: css
css:
bin/make_css.sh
.PHONY: html
html:
bin/make_html.sh
.PHONY: dev
dev:
honcho start
.PHONY: format
format:
npx prettier --write .
.PHONY: checkformatting
checkformatting:
npx prettier --check .
.PHONY: validate
validate:
npx html-validate .
.PHONY: spell
spell: additional_args?=
spell:
@DICPATH=hunspell hunspell -H -d en_US -r -p hunspell/personal.dict $(additional_args) site/index.html
.PHONY: readme
readme:
cogapp -D badges=${badges} -D version=${version} -r README.md