-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
40 lines (27 loc) · 961 Bytes
/
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
.DEFAULT_GOAL := default
.SILENT: fmt-check lint type-check add add-platform check fix build reset search summary blog
fmt-check:
deno fmt --quiet --check
lint:
deno lint --quiet
type-check:
deno check --quiet source/*.ts
add:
deno --allow-env --allow-read --allow-write source/add.ts anchor=$(anchor) name=$(name) website=$(website)
add-platform:
deno --allow-env --allow-read --allow-write source/add-platform.ts
check:
deno --allow-env --allow-read source/check.ts
fix:
deno --allow-env --allow-read --allow-write source/check.ts --fix
build:
deno --allow-env --allow-read --allow-write source/build.ts
reset:
deno --allow-env --allow-read --allow-write source/reset.ts
search:
deno --allow-env --allow-read source/search.ts
summary:
deno --allow-env --allow-read source/summary.ts
blog:
cat README.md | sed -r 's/<h1.+h1>//g' | sed -r 's/<h2/<h3/g' | sed -r 's/<\/h2/<\/h4/g' | pbcopy
default: fmt-check lint type-check check build