-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathMakefile
More file actions
47 lines (35 loc) · 802 Bytes
/
Copy pathMakefile
File metadata and controls
47 lines (35 loc) · 802 Bytes
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
.PHONY: build
build: clean setup
bun run -- ./script/build.ts
.PHONY: check
check: lint build
.PHONY: dev
dev: setup
bun run -- ./script/dev.ts
.PHONY: format
format: setup
bun x -- bun-dx --package @biomejs/biome biome -- check --write
.PHONY: lint
lint: lint-biome lint-tsc
.PHONY: lint-biome
lint-biome: setup
bun x -- bun-dx --package @biomejs/biome biome -- check
.PHONY: lint-tsc
lint-tsc: setup
bun x -- bun-dx --package typescript tsc -- --project ./tsconfig.json
.PHONY: setup
setup:
bun install --frozen-lockfile
.PHONY: test
test: lint
.PHONY: prepublishOnly
prepublishOnly: clean test
.PHOHY: deploy
deploy: build
bun x -- bun-dx --package @cubing/deploy deploy --
.PHONY: clean
clean:
rm -rf ./dist ./package-lock.json
.PHONY: reset
reset: clean
rm -rf ./node_modules