-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
44 lines (35 loc) · 996 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
#!/bin/bash
usage = "\
install 安装/更新依赖\n\
devMain 启动微前端容器开发模式\n\
devVue 启动vue仓库\n\
devVue3 启动vue3仓库\n\
devReact 启动react仓库\n\
# step print
define printStep
@echo "\033[1;33mPC-SHARED:\033[0m $1"
endef
# Must be the first target!
default:
@echo $(usage)
# 安装所有依赖
install:
cd main && yarn && cd ../vue && yarn && cd ../vue3 && yarn && cd ../react && yarn
# 启动单个应用
devMain:
cd main && yarn dev $(dev_args)
devVue:
cd vue && yarn dev $(dev_args)
devVue3:
cd vue3 && yarn dev $(dev_args)
devReact:
cd react && yarn dev $(dev_args)
# 打包
buildMain:
cd main && yarn build $(dev_args)
buildVue:
cd vue && yarn build $(dev_args)
buildVue3:
cd vue3 && yarn build $(dev_args)
buildReact:
cd react && yarn build $(dev_args)