-
Notifications
You must be signed in to change notification settings - Fork 658
Expand file tree
/
Copy pathinstall.bash
More file actions
60 lines (53 loc) · 1.3 KB
/
install.bash
File metadata and controls
60 lines (53 loc) · 1.3 KB
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
#!/usr/bin/env bash
set -e
yarn install --frozen-lockfile
for dir in packages/*; do
echo "Installing... $dir"
pushd "$dir"
yarn install --frozen-lockfile
popd
echo "Done..."
echo ""
done
for dir in platform/*; do
echo "Installing... $dir"
pushd "$dir"
yarn install --frozen-lockfile
if [ -d "internal_pkgs" ]; then
for subdir in internal_pkgs/*; do
pushd "$subdir"
yarn install --frozen-lockfile
if [ "$(jq -r '.scripts.build' package.json)" != "null" ]; then
NODE_ENV=production yarn build
fi
popd
done
fi
popd
echo "Done..."
echo ""
done
NX_REJECT_UNKNOWN_LOCAL_CACHE=0 yarn nx run-many --target=build --verbose
for dir in platform/*; do
if [ "$dir" == "platform/wab" ]; then
continue
fi
echo "Building... $dir"
pushd platform/"$dir"
if [ -f package.json ]; then
if [ "\$(jq -r '.scripts.build' package.json)" != "null" ]; then
NODE_ENV=production yarn build
fi
fi
popd
echo "Done..."
echo ""
done
pushd platform/wab
make
NODE_ENV=production yarn build-css
export PUBLIC_URL="${PUBLIC_URL:-http://localhost:3003}"
echo "Building... wab for $PUBLIC_URL"
NODE_ENV=production yarn build
echo "Done..."
popd