Repository navigation
Expand file tree
/
Copy pathMakefile
More file actions
74 lines (55 loc) · 1.44 KB
/
Copy pathMakefile
File metadata and controls
74 lines (55 loc) · 1.44 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
.PHONY: build
build: build-esm build-bundle-global build-types
.PHONY: check
check: lint test build check-package.json
.PHONY: check-package.json
check-package.json: build
bun x --package @cubing/dev-config package.json -- check
.PHONY: setup
setup:
bun install --frozen-lockfile
.PHONY: build-esm
build-esm: setup
bun run script/build-esm.ts
.PHONY: build-bundle-global
build-bundle-global: setup
bun run script/build-bundle-global.ts
.PHONY: build-types
build-types: setup
bun x -- bun-dx --package typescript tsc -- --project ./.config/types.tsconfig.json
.PHONY: build-site
build-site: setup
bun run script/build-site.ts
.PHONY: dev
dev: setup
bun run script/dev.ts
.PHONY: clean
clean:
rm -rf ./.cache ./dist
.PHONY: prepublishOnly
prepublishOnly: clean check build
.PHONY: deploy
deploy: clean build-site
bun x -- bun-dx --package @cubing/deploy deploy --
.PHONY: test
test: check-dependency-constraints
.PHONY: check-dependency-constraints
check-dependency-constraints:
bun run ./script/check-dependency-constraints.ts
.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: format
format: setup
bun x -- bun-dx --package @biomejs/biome biome -- check --write
.PHONY: publish
publish: setup
npm publish
.PHONY: reset
reset: clean
rm -rf ./node_modules