-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
executable file
·57 lines (43 loc) · 1.04 KB
/
makefile
File metadata and controls
executable file
·57 lines (43 loc) · 1.04 KB
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
54
55
56
57
NODE_VERSION := $(shell node -v 2>/dev/null)
REQUIRED_NODE := v18.20.8
check-node:
@if [ -z "$(NODE_VERSION)" ]; then \
echo "Error: Node.js is not installed. Please install Node.js $(REQUIRED_NOTE)"; \
exit 1; \
elif [ "$(NODE_VERSION)" != "$(REQUIRED_NODE)" ]; then \
echo "Error: Wrong Node.js version. Please switch to $(REQUIRED_NODE) (current: $(NODE_VERSION))"; \
echo "Run: nvm use lts/hydrogen"; \
exit 1; \
fi
init: check-node
yarn install
clean:
rm -rf .cache || true
rm -rf public || true
yarn run clean
clean-dev: check-node
make clean || true
make dev
dev: check-node
yarn run develop
dev-m: check-node
yarn run develop-net
clean-dev-m: check-node
make clean || true
make dev-m
format: check-node
yarn run format
build: check-node
yarn run build
serve: check-node
yarn run serve
serve-m: check-node
yarn run serve-net
docker-buildup: check-node
docker-compose build || true
docker-compose up
docker-up: check-node
docker-compose up
# deploy-live:
# git pull upstream master || true
# git push origin master