-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathMakefile
71 lines (54 loc) · 1.38 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
REV=$(shell git rev-parse --short HEAD)
PROJECT="neovimcraft-$(REV)"
dev:
deno run --allow-read --allow-net src/dev.ts
.PHONY: dev
resource:
deno run --allow-write src/scripts/resource.ts
.PHONY: resource
resource-config:
deno run --allow-write src/scripts/resource.ts config
.PHONY: resource-config
download-config:
deno run --allow-env --allow-write --allow-net src/scripts/scrape-config.ts
.PHONY: download-config
download: download-config
deno run --allow-write --allow-net src/scripts/scrape.ts
.PHONY: download
patch:
deno run --allow-write src/scripts/patch.ts
.PHONY: patch
process:
deno run --allow-write --allow-env --allow-net src/scripts/process.ts
.PHONY: process
missing:
deno run --allow-write --allow-env --allow-net --allow-read src/scripts/process.ts missing
.PHONY: missing
html:
deno run --allow-write --allow-read src/scripts/html.ts
.PHONY: html
scrape: download patch process html
.PHONY: scrape
clean:
rm -rf ./public
mkdir ./public
.PHONY: clean
build: clean
deno run --allow-write src/scripts/static.ts
cp ./data/db.json ./public/db.json
cp -r ./static/* ./public
.PHONY: build
upload:
scp -r ./public/* [email protected]:/$(PROJECT)
ssh pgs.sh neovimcraft --to $(PROJECT) --write
.PHONY: upload
deploy: scrape build upload
.PHONY: deploy
format:
deno fmt
.PHONY: format
test:
deno lint
.PHONY: test
config: download-config process html
.PHONY: configs