-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
59 lines (45 loc) · 1.02 KB
/
Makefile
File metadata and controls
59 lines (45 loc) · 1.02 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
.PHONY: build
build: setup
bun run ./script/build.ts
.PHONY: check
check: lint test build check-package.json
.PHONY: test
test: lint check-readme-cli-help
.PHONY: lint
lint: setup check-readme-cli-help
bun x @biomejs/biome check
bun x tsc --noEmit --project .
.PHONY: format
format: setup update-readme-cli-help
bun x @biomejs/biome check --write
.PHONY: check-package.json
check-package.json: build
bun x --package @cubing/dev-config package.json check
.PHONY: publish
publish:
npm publish
.PHONY: update-readme-cli-help
update-readme-cli-help: setup
bun x readme-cli-help update
.PHONY: check-readme-cli-help
check-readme-cli-help: setup
bun x readme-cli-help check
.PHONY: setup
setup:
bun install --frozen-lockfile
.PHONY: clean
clean:
rm -rf ./dist ./package-lock.json
.PHONY: deploy
deploy: setup
mkdir -p ./dist/web
cp -R ./src/web/ ./dist/web/
bun run src/cli/main.ts
.PHONY: test
test: setup
bun test
.PHONY: reset
reset: clean
rm -rf ./node_modules
.PHONY: prepublishOnly
prepublishOnly: clean check build