-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (32 loc) · 945 Bytes
/
Copy pathMakefile
File metadata and controls
46 lines (32 loc) · 945 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
.PHONY: default build check-updates clean docs git-hook pretty lint test run
default: build
build: lib/main.js
clean:
rm --force --recursive node_modules output tsconfig.tsbuildinfo
check-updates: node_modules/.package-lock.json
npx npm-check-updates
docs:
@echo "This project has no documentation."
git-hook:
echo "make pretty" > .git/hooks/pre-commit
pretty: node_modules/.package-lock.json
npm exec -- biome check --write --no-errors-on-unmatched
npm pkg fix
lint: node_modules/.package-lock.json
npm exec -- biome check .
npm exec -- tsc --noEmit
test:
npm exec -- tsc
TZ=UTC node --enable-source-maps --test output/*.test.js
run: lib/main.js
node ./lib/main.js
.PHONY: refresh
refresh: default
git add .
git commit -s -m 'chore: Rebuild entrypoint'
node_modules/.package-lock.json: package-lock.json
npm ci
package-lock.json: package.json
npm install
lib/main.js: node_modules/.package-lock.json
node build.js