This repository has been archived by the owner on Jul 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 145
/
Makefile
103 lines (78 loc) · 2.01 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
default: ensure build serve
devcontainer:
mkdir -p .devcontainer
git submodule update --init .github/devcontainer
git submodule update --remote --merge .github/devcontainer
rsync -av .github/devcontainer/.devcontainer .
cp -f .devcontainer/hugo/* .devcontainer/
rm -rf .github/devcontainer/* .github/devcontainer/.* 2>/dev/null || true
.PHONY: clean
clean:
./scripts/clean.sh
.PHONY: ensure
ensure:
./scripts/ensure.sh
.PHONY: lint
lint:
./scripts/lint.sh
.PHONY: format
format:
yarn prettier --write .
.PHONY: build
build:
./scripts/build.sh
.PHONY: test
test:
$(MAKE) test-programs
.PHONY: test-programs
test-programs:
./scripts/programs/test.sh preview
.PHONY: upgrade-programs
upgrade-programs:
./scripts/programs/upgrade.sh
.PHONY: test-full
test-full:
./scripts/test.sh update
.PHONY: ci-build-full-site
ci-build-full-site:
./scripts/ci/build-full-site.sh
.PHONY: serve
serve:
./scripts/serve.sh
.PHONY: serve-assets
serve-assets:
yarn --cwd ./themes/default/theme run start
.PHONY: serve-all
serve-all:
./node_modules/.bin/concurrently --kill-others -r "./scripts/serve.sh" "yarn --cwd ./themes/default/theme run start"
.PHONY: build-assets
build-assets:
yarn --cwd ./themes/default/theme run build
.PHONY: ci-await
ci-await:
node ./scripts/ci/await-in-progress.js
.PHONY: ci-pull-request
ci-pull-request: ensure lint
./scripts/ci/pull-request.sh
.PHONY: ci-pull-request-closed
ci-pull-request-closed:
./scripts/ci/pull-request-closed.sh
.PHONY: ci-scheduled
ci-scheduled:
./scripts/ci/scheduled.sh
.PHONY: new-blog-post
new-blog-post:
hugo new --kind blog-post --contentDir themes/default/content \
"blog/$(shell bash -c 'read -p "Slug (e.g., 'my-new-post'): " slug; echo $$slug')"
.PHONY: new-learn-module
new-learn-module:
./scripts/content/new-learn-module.sh
.PHONY: new-learn-topic
new-learn-topic:
./scripts/content/new-learn-topic.sh
.PHONY: new-template
new-template:
./scripts/content/new-template.sh
.PHONY: new-example-program
new-example-program:
./scripts/content/new-example-program.sh