repos / neovimcraft

website that makes it easy to find neovim plugins
git clone https://github.com/neurosnap/neovimcraft.git

Eric Bower · 03 Apr 24

Makefile

 1REV=$(shell git rev-parse --short HEAD)
 2PROJECT="neovimcraft-$(REV)"
 3
 4dev:
 5	deno run --allow-read --allow-net src/dev.ts
 6.PHONY: dev
 7
 8resource:
 9	deno run --allow-write src/scripts/resource.ts
10.PHONY: resource
11
12resource-config:
13	deno run --allow-write src/scripts/resource.ts config
14.PHONY: resource-config
15
16download-config:
17	deno run --allow-env --allow-write --allow-net src/scripts/scrape-config.ts
18.PHONY: download-config
19
20download: download-config
21	deno run --allow-write --allow-net src/scripts/scrape.ts
22.PHONY: download
23
24patch:
25	deno run --allow-write src/scripts/patch.ts
26.PHONY: patch
27
28process:
29	deno run --allow-write --allow-env --allow-net src/scripts/process.ts
30.PHONY: process
31
32missing:
33	deno run --allow-write --allow-env --allow-net --allow-read src/scripts/process.ts missing
34.PHONY: missing
35
36html:
37	deno run --allow-write --allow-read src/scripts/html.ts
38.PHONY: html
39
40scrape: download patch process html
41.PHONY: scrape
42
43clean:
44	rm -rf ./public
45	mkdir ./public
46.PHONY: clean
47
48build: clean
49	deno run --allow-write src/scripts/static.ts
50	cp ./data/db.json ./public/db.json
51	cp -r ./static/* ./public
52.PHONY: build
53
54upload:
55	scp -r ./public/* erock@pgs.sh:/$(PROJECT)
56	ssh pgs.sh neovimcraft --to $(PROJECT) --write
57.PHONY: upload
58
59deploy: scrape build upload
60.PHONY: deploy
61
62format:
63	deno fmt
64.PHONY: format
65
66test:
67	deno lint
68.PHONY: test
69
70config: download-config process html
71.PHONY: configs