-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (34 loc) · 797 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
42
43
44
.PHONY: install-dev install-prod compile lint test dev start update clean
PROJECT = "PNK Stack"
install-dev:
echo "Installing all dependencies for ${PROJECT}..."; \
rm -rf node_modules \
npm install
install-prod:
echo "Installing only prod dependencies for ${PROJECT}..."; \
rm -rf node_modules \
npm ci --only=production
compile:
echo "Compiling ${PROJECT}..."; \
npx tsc
lint:
echo "Linting ${PROJECT}..."; \
npx tsc --noEmit \
npx eslint src
test:
echo "Testing ${PROJECT}..."; \
npx jest
dev:
echo "Locally starting ${PROJECT}..."; \
npm run dev
start:
echo "Starting ${PROJECT}..."; \
npm run compile \
node ./dist
update:
echo "Updating ${PROJECT}..."; \
npm update
clean:
echo "Removing node_modules from ${PROJECT}..."; \
rm -rf dist \
rm -rf node_modules