-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstart.sh
executable file
·53 lines (28 loc) · 963 Bytes
/
start.sh
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
#!/usr/bin/env bash
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin::/usr/local/bin
# set -e;
echo $PATH
# project_name=release-inspection-of-antv
project_name=$1
project_branch=$2
cd ..
echo "\033[49;32m \n******* ${project_name} cloning *******\n \033[0m"
git clone -b ${project_branch} https://github.com/antvis/${project_name}.git
cd ./${project_name}
echo "\033[49;32m \n******* ${project_name} installing *******\n \033[0m"
npm i
echo "\033[49;32m \n******* ${project_name} building *******\n \033[0m"
npm run dist
cd ../release-inspection-of-antv/client
echo "\033[49;32m \n******* client installing *******\n \033[0m"
npm i
echo "\033[49;32m \n******* client building *******\n \033[0m"
npm run build
cd ../server
echo "\033[49;32m \n******* server installing *******\n \033[0m"
npm i
echo "\033[49;32m \n******* server starting *******\n \033[0m"
npm start
# cd ..
# time=$(date "+%Y-%m-%d-%H-%M-%S")
# git checkout -b "${time}"