-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (38 loc) · 863 Bytes
/
Makefile
File metadata and controls
51 lines (38 loc) · 863 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
cli = bunx --bun bookmarklets-cli 'src/*.ts'
vitest = bunx --bun vitest
biome = bunx --bun biome
eslint = bunx --bun 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 .
test: node_modules PHONY
$(vitest) run
test.watch: node_modules PHONY
$(vitest) watch
clear: PHONY
rm -rf dist
dev: node_modules PHONY
$(cli) --watch
build: node_modules clear PHONY
$(cli)
@make build.manifest
@make docgen
build.manifest: node_modules PHONY
bun run ./bin/generateManifest.ts ./src ./dist
docgen: node_modules PHONY
bun run bin/docgen/index.ts
@make lint.fix
typecheck: node_modules PHONY
bunx tsc --noEmit
typecheck.watch: node_modules PHONY
bunx tsc --noEmit --watch
PHONY: