forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupdate-angular.sh
More file actions
executable file
·26 lines (18 loc) · 648 Bytes
/
update-angular.sh
File metadata and controls
executable file
·26 lines (18 loc) · 648 Bytes
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
#!/bin/bash
ARG_DEFS=(
"--version=(.*)"
)
function run {
PROJECT_DIR=$SCRIPT_DIR/../
cd $SCRIPT_DIR/../config/lib/js/angular/
rm -rf *.js
wget http://code.angularjs.org/$VERSION/angular{,-sanitize,-animate,-resource}{.min.js,.js}
# # no min versions of mocks and scenario
wget http://code.angularjs.org/$VERSION/angular{-scenario,-mocks}.js
cd $PROJECT_DIR
echo "Setting bower.json angular versions to ~$VERSION"
replaceJsonProp "bower.json" "angular" "~$VERSION"
replaceJsonProp "bower.json" "angular-animate" "~$VERSION"
replaceJsonProp "bower.json" "angular-sanitize" "~$VERSION"
}
source $(dirname $0)/utils.inc