forked from FabricMC/fabricmc.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (25 loc) · 817 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
ENTRYPOINT=main.ts
DENO_PERMISSIONS=--allow-net --allow-env --allow-read --allow-write
run: fontgen
cd ../scripts; \
npm install; \
npm run buildLib
deno run $(DENO_PERMISSIONS) $(ENTRYPOINT)
check:
deno check $(ENTRYPOINT)
fontgen:
deno run --allow-read --allow-write fontgen.ts
test: fontgen check
deno test --allow-env --allow-read --allow-net --allow-write --allow-run test.ts
build: fontgen check
deno run --allow-env --allow-read --allow-net --allow-write --allow-run bundle.ts
install: build
deno install $(DENO_PERMISSIONS) -f -n fabric bundled.ts
install-stable: build
deno install $(DENO_PERMISSIONS) -f -n fabric bundled.ts
init:
rm -rf ./test
deno run $(DENO_PERMISSIONS) $(ENTRYPOINT) init ./test
init-stable:
rm -rf ./test
deno run $(DENO_PERMISSIONS) $(ENTRYPOINT) init ./test