forked from Qortal/qortal-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-dependencies.sh
71 lines (57 loc) · 1.63 KB
/
install-dependencies.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/bin/sh
# Qortal Blockchain Project - 2021
# Travis Script to install dependencies...
set -ev
# install every repository needed, install dependencies, clone git repos, do yarn linking and building, and build and run final UI
install_dependencies()
{
echo -e '---INSTALLING DEPENDENCIES!---'
echo -e '---INSTALLING ALL UI REPOSITORIES---'
cd ../
cd qortal-ui-core
yarn install --pure-lockfile
cd ../
mkdir qortal-ui/qortal-ui-core
rsync -a qortal-ui-core/ qortal-ui/qortal-ui-core --exclude .git
cd qortal-ui/qortal-ui-core
yarn link
cd ../../
cd qortal-ui-plugins
yarn install --pure-lockfile
cd ../
mkdir qortal-ui/qortal-ui-plugins
rsync -a qortal-ui-plugins/ qortal-ui/qortal-ui-plugins --exclude .git
cd qortal-ui/qortal-ui-plugins
yarn link
cd ../../
cd qortal-ui-crypto
yarn install --pure-lockfile
cd ../
mkdir qortal-ui/qortal-ui-crypto
rsync -a qortal-ui-crypto/ qortal-ui/qortal-ui-crypto --exclude .git
cd qortal-ui/qortal-ui-crypto
yarn link
cd ../
echo -e '---INSTALL ALL DEPENDENCIES---'
yarn install --pure-lockfile
echo -e '---LINKING UI FOLDERS ---'
yarn link qortal-ui-core
yarn link qortal-ui-crypto
yarn link qortal-ui-plugins
echo -e '---BUILDING UI DEPENDENCIES!---'
yarn build
echo -e '---UPDATE PACKAGE-JSON UI DEPENDENCIES!---'
yarn update-package-json
echo -e '---REMOVE MODULES AND UNUSED DEPENDENCIES!---'
cd qortal-ui-core
yarn install --production --ignore-scripts --prefer-offline
cd ../
cd qortal-ui-plugins
rm -R node_modules
cd ../
cd qortal-ui-crypto
rm -R node_modules
cd ../
rm -R qortal-ui-crypto
}
install_dependencies