-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (39 loc) · 965 Bytes
/
Makefile
File metadata and controls
53 lines (39 loc) · 965 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
bundlemonkey = bunx --bun bundlemonkey
biome = bunx biome
eslint = bunx eslint
node_modules: PHONY
ifeq ($(CI), true)
bun install --frozen-lockfile
else
bun install
endif
lint: node_modules PHONY
$(biome) check .
$(eslint) .
lint.fix: node_modules PHONY
$(biome) check --fix .
$(eslint) --fix .
lint.fix.dist: node_modules PHONY
$(biome) check --config-path ./biome-dist.json --fix dist
$(eslint) --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: