mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
Addresses #3274. These dependencies should not be in bower.json because they are not used in Ionic. Many people's build processes pull in all of these and automatically bundle them into the browser. If they do that, it will break with the addition of `scenario` and `mocks`. Additionally, we will add unneeded overhead with `aria`, `messages` and `resources`.
28 lines
663 B
Bash
Executable File
28 lines
663 B
Bash
Executable File
#!/bin/bash
|
|
|
|
ARG_DEFS=(
|
|
"--version=(.*)"
|
|
)
|
|
function run {
|
|
PROJECT_DIR=$SCRIPT_DIR/../
|
|
|
|
cd $SCRIPT_DIR/../config/lib/js/angular/
|
|
rm -rf *.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
|
|
|
|
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
|