-
Notifications
You must be signed in to change notification settings - Fork 0
/
update-angular.sh
executable file
·40 lines (35 loc) · 1.05 KB
/
update-angular.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
npx @angular/cli@13 update @angular/core@13 @angular/cli@13
git add --all
git commit -m "Updated Angular version"
git push
npx @angular/cli@13 update @angular/material@13
git add --all
git commit -m "Updated Angular Material version"
git push
#############
# Old way
#############
#echo "--> Uninstalling angular-cli dependency ..."
#npm uninstall -g @angular-cli
#
#echo "--> Reinstalling angular-cli dependency ..."
#npm install -g @angular/cli@latest
#
#echo "--> Removing node_modules ..."
#rm -rf node_modules # otherwise the angular-cli install from node_modules will be prioritized
#
#
#echo "--> Uninstalling angular-cli dev dependency ..."
#npm uninstall --save-dev @angular/cli --legacy-peer-deps
#
#echo "--> Reinstalling angular-cli dev dependency ..."
#npm install --save-dev @angular/cli@latest --legacy-peer-deps
#
## set HTTP_PROXY and HTTPS_PROXY to empty or the proxy address
#export HTTP_PROXY=""
#export HTTPS_PROXY=""
#
#echo "--> Updating angular CLI and Core version"
#ng update @angular/cli @angular/core --force
#
#npm install --legacy-peer-deps