generated from oliversalzburg/nodejs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
41 lines (28 loc) · 700 Bytes
/
Makefile
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
.PHONY: default build clean docs git-hook pretty lint test run
default: build
build: output
clean:
rm --force --recursive node_modules output tsconfig.tsbuildinfo
docs:
@echo "This project has no documentation."
git-hook:
echo "make pretty" > .git/hooks/pre-commit
pretty: node_modules
yarn biome check --write --no-errors-on-unmatched
npm pkg fix
lint: node_modules
yarn biome check .
yarn tsc --noEmit
test:
yarn tsc
yarn c8 --reporter=html-spa node $(shell yarn bin mocha) output/*.test.js
run: build
node ./lib/main.js
.PHONY: refresh
refresh: default
git add .
git commit -s -m 'chore: Rebuild entrypoint'
node_modules:
yarn install
output: node_modules
node build.js