-
Notifications
You must be signed in to change notification settings - Fork 0
/
update.sh
executable file
·47 lines (32 loc) · 881 Bytes
/
update.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
#!/bin/bash
# Exit immediately if a command exits with a non-zero status.
set -e
# Enter /shared/shared-models
pushd shared/shared-models
printf "\n>>> Update dependencies for shared-models...\n"
rm -rfv dist node_modules | sed 's/\([^/]*\)\/.*$/\1/' | sort | uniq
npm i
tsc
popd
# Enter /shared/shared-utils
pushd shared/shared-utils
printf "\n>>> Update dependencies for shared-utils...\n"
rm -rfv dist node_modules | sed 's/\([^/]*\)\/.*$/\1/' | sort | uniq
npm i
tsc
popd
# Enter /server
pushd server
printf "\n>>> Update dependencies for server...\n"
rm -rfv dist node_modules | sed 's/\([^/]*\)\/.*$/\1/' | sort | uniq
printf "\n>>> Building...\n"
npm i
tsc
popd
# Enter /frontend
pushd frontend
printf "\n>>> Update dependencies for front-end...\n"
rm -rfv build node_modules | sed 's/\([^/]*\)\/.*$/\1/' | sort | uniq
printf "\n>>> Building...\n"
npm i
popd