-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.sh
executable file
·46 lines (36 loc) · 865 Bytes
/
setup.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
#!/usr/bin/env bash
DEPENDENCIES="rps rpsPresentationI18n webSpecs"
FRONTENDS="web reduxWeb refluxWeb angularWeb vueWeb elmWeb"
install() {
for dir in $1; do
pushd $dir
yarn
popd
done
}
symlinkToGlobalModules() {
for dir in $1; do
pushd $dir
yarn link
popd
done
}
symlinkFromGlobalModules() {
for dir in $1; do
pushd $dir
for dep in $2; do
yarn link $dep
done
popd
done
}
install "$DEPENDENCIES"
install "$FRONTENDS"
install "pouchPersist"
symlinkToGlobalModules "$DEPENDENCIES"
symlinkToGlobalModules "pouchPersist"
symlinkFromGlobalModules "$FRONTENDS" "$DEPENDENCIES"
symlinkFromGlobalModules "webSpecs" "rps rpsPresentationI18n"
symlinkFromGlobalModules "pouchPersist" "rps"
symlinkFromGlobalModules "web" "pouchPersist"
./compile.sh ${FRONTENDS}