-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (42 loc) · 1.18 KB
/
Makefile
File metadata and controls
57 lines (42 loc) · 1.18 KB
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
.PHONY: build
build: build-js build-types
.PHONY: build-js
build-js:
bun run -- script/build.ts build-types
.PHONY: build-types
build-types:
bun x -- bun-dx --package @typescript/native-preview tsgo -- --project ./tsconfig.types.jsonc
.PHONY: check
check: lint test build check-package.json
.PHONY: test
test:
bun test
.PHONY: setup
setup:
bun install --frozen-lockfile
.PHONY: dev
dev: setup
bun run -- ./script/dev.ts
.PHONY: lint
lint: lint-biome lint-typescript
.PHONY: lint-biome
lint-biome:
bun x -- bun-dx --package @biomejs/biome biome -- check
.PHONY: lint-typescript
lint-typescript:
bun x -- bun-dx --package @typescript/native-preview tsgo -- --project ./tsconfig.json
.PHONY: format
format:
bun x -- bun-dx --package @biomejs/biome biome -- check --write
.PHONY: check-package.json
check-package.json: build
bun x -- bun-dx --package @cubing/dev-config package.json -- check
.PHONY: prepublishOnly
prepublishOnly: clean check build
RM_RF = bun -e 'process.argv.slice(1).map(p => process.getBuiltinModule("node:fs").rmSync(p, {recursive: true, force: true, maxRetries: 5}))' --
.PHONY: clean
clean:
${RM_RF} ./dist/
.PHONY: reset
reset: clean
${RM_RF} ./node_modules/