-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
58 lines (42 loc) · 940 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
NAME = splendor-ui
usage = "\
Usage: make [target]\n\n\
Available targets:\n\
install 安装项目依赖\n\
dev 启动文档调试\n\
build 打包\n\
build-doc 文档打包\n\
docker 文档部署(暂时不用)\n\
"
# Must be the first target!
usage:
@echo $(usage)
install:
yarn install
dev:
yarn dev
clean:
rm -rf ./es
build: clean
yarn build
build-doc:
yarn build-doc
cp .vitepress/public/* .vitepress/dist
version:
yarn version
publish:
sh ./scripts/release.sh
publish-beta:
sh ./scripts/release-beta.sh
publish-doc: build-doc
npx cloudbase hosting:deploy .vitepress/dist
docker-kill:
-docker kill $(NAME)
-docker rm $(NAME)
docker-build:
docker build -t $(NAME) .
docker-run: docker-kill
docker run -d -p 80:3000 --name $(NAME) --net qas --net-alias $(NAME) --restart always $(NAME)
docker: docker-build docker-run
docker-restart:
docker restart $(NAME)