-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (42 loc) · 1015 Bytes
/
Copy pathMakefile
File metadata and controls
56 lines (42 loc) · 1015 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
48
49
50
51
52
53
54
55
56
bundlemonkey = bunx --bun bundlemonkey
oxlint = bunx oxlint
oxfmt = bunx oxfmt
biome = bunx biome
node_modules: PHONY
ifeq ($(CI), true)
bun install --frozen-lockfile
else
bun install
endif
lint: node_modules PHONY
$(oxfmt) --check
$(oxlint) --type-aware
$(biome) check .
lint.fix: node_modules PHONY
$(oxfmt)
$(oxlint) --fix --type-aware
$(biome) check --fix .
lint.fix.dist: node_modules PHONY
$(oxfmt) dist
$(oxlint) -c oxlint.dist.config.ts --fix dist
dev: dev.remote PHONY
dev.remote: node_modules PHONY
$(bundlemonkey) --watch --remote
dev.static: node_modules PHONY
$(bundlemonkey) --watch
build: node_modules clear PHONY
$(bundlemonkey)
sed -i -E 's@^\s*//\s*eslint-disable-.+$$@@' dist/*
@make lint.fix.dist
clear: PHONY
rm -rf dist
docgen: node_modules PHONY
bun run bin/docgen.ts
@make lint.fix
typecheck: node_modules PHONY
bunx tsc --noEmit
typecheck.watch: node_modules PHONY
bunx tsc --noEmit --watch
open.dist.in.remote: PHONY
@./bin/open-dist-in-remote.sh
PHONY: