-
Notifications
You must be signed in to change notification settings - Fork 2
/
buildArlasAndCopyDependencies.sh
executable file
·54 lines (44 loc) · 1.36 KB
/
buildArlasAndCopyDependencies.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
if [[ ! -d ../ARLAS-web-core/ ]] ; then
echo 'Directory "../ARLAS-web-core/" is not there, aborting.'
exit
fi
if [[ ! -d ../ARLAS-web-contributors/ ]] ; then
echo 'Directory "../ARLAS-web-contributors/" is not there, aborting.'
exit
fi
if [[ ! -d ../ARLAS-web-components/ ]] ; then
echo 'Directory "../ARLAS-web-components/" is not there, aborting.'
exit
fi
# get initial dependencies
cd ../ARLAS-web-core/
yarn install
cd -
cd ../ARLAS-web-contributors/
yarn install
cd -
cd ../ARLAS-web-components/
yarn install
cd -
# now we build
cd ../ARLAS-web-core/
yarn build-release
cd -
cd ../ARLAS-web-contributors/
yarn build-release
cd -
cd ../ARLAS-web-components/
yarn build-release
cd -
# now we copy
# now we copy
cp -r ../ARLAS-web-core/dist/* ../ARLAS-web-contributors/node_modules/arlas-web-core
rm -rf ../ARLAS-wui/node_modules/arlas-web-core
mkdir ../ARLAS-wui/node_modules/arlas-web-core
cp -r ../ARLAS-web-core/dist/* ../ARLAS-wui/node_modules/arlas-web-core
rm -rf ../ARLAS-wui/node_modules/arlas-web-contributors
mkdir ../ARLAS-wui/node_modules/arlas-web-contributors
cp -r ../ARLAS-web-contributors/dist/* ../ARLAS-wui/node_modules/arlas-web-contributors
rm -rf ../ARLAS-wui/node_modules/arlas-web-components
mkdir ../ARLAS-wui/node_modules/arlas-web-components
cp -r ../ARLAS-web-components/dist/* ../ARLAS-wui/node_modules/arlas-web-components