Skip to content

Commit

Permalink
Add all angular dependencies to update-angular.sh
Browse files Browse the repository at this point in the history
- Update bower.json to match dependencies used and
  version numbers.
  • Loading branch information
barlindhaug committed Mar 10, 2015
1 parent f71c04d commit 80a1e6e
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
11 changes: 8 additions & 3 deletions bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,14 @@
"js/ionic.js"
],
"dependencies": {
"angular": "1.3.6",
"angular-animate": "1.3.6",
"angular-sanitize": "1.3.6",
"angular": "1.3.13",
"angular-animate": "1.3.13",
"angular-aria": "1.3.13",
"angular-messages": "1.3.13",
"angular-mocks": "1.3.13",
"angular-resource": "1.3.13",
"angular-sanitize": "1.3.13",
"angular-scenario": "1.3.13",
"angular-ui-router": "0.2.13"
}
}
8 changes: 7 additions & 1 deletion scripts/update-angular.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function run {
cd $SCRIPT_DIR/../config/lib/js/angular/
rm -rf *.js

wget https://code.angularjs.org/$VERSION/angular{,-sanitize,-animate,-resource}{.min.js,.js}
wget https://code.angularjs.org/$VERSION/angular{,-sanitize,-animate,-resource,-aria,-messages}{.min.js,.js}

# # no min versions of mocks and scenario
wget https://code.angularjs.org/$VERSION/angular{-scenario,-mocks}.js
Expand All @@ -20,7 +20,13 @@ function run {

replaceJsonProp "bower.json" "angular" "$VERSION"
replaceJsonProp "bower.json" "angular-animate" "$VERSION"
replaceJsonProp "bower.json" "angular-aria" "$VERSION"
replaceJsonProp "bower.json" "angular-messages" "$VERSION"
replaceJsonProp "bower.json" "angular-mocks" "$VERSION"
replaceJsonProp "bower.json" "angular-resource" "$VERSION"
replaceJsonProp "bower.json" "angular-sanitize" "$VERSION"
replaceJsonProp "bower.json" "angular-scenario" "$VERSION"

}

source $(dirname $0)/utils.inc

0 comments on commit 80a1e6e

Please sign in to comment.