Skip to content

Commit

Permalink
chore(travis): update ionic-bower's bower.json every release
Browse files Browse the repository at this point in the history
Closes #793, #759
  • Loading branch information
ajoslin committed Mar 14, 2014
1 parent 880ae7d commit c180a39
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
6 changes: 1 addition & 5 deletions bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "ionic",
"version": "0.9.26",
"codename": "rabbit",
"homepage": "https://github.com/driftyco/ionic",
"authors": [
"Max Lynch <max@drifty.com>",
Expand Down Expand Up @@ -51,10 +52,5 @@
"angular-animate": "1.2.12",
"angular-sanitize": "1.2.12",
"angular-ui-router": "0.2.7"
},
"devDependencies": {
"bootstrap": "~3.1.1",
"lunr.js": "~0.4.5",
"marked": "~0.3.1"
}
}
10 changes: 6 additions & 4 deletions scripts/bower/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ function run {

echo "-- Cloning ionic-bower..."
git clone https://$GH_ORG:$GH_TOKEN@github.com/$GH_ORG/ionic-bower.git \
$BOWER_DIR \
--depth=10
$BOWER_DIR \
--depth=10

# move the files from the build
echo "-- Putting build files in ionic-bower..."
Expand All @@ -42,8 +42,10 @@ function run {
rm -rf $BOWER_DIR/js/ionic.bundle.*
rm -rf $BOWER_DIR/version.json # unneeded

# update bower.json
# tag each repo
echo "-- Copying bower.json from project_dir and renaming main files"
cp -Rf $PROJECT_DIR/bower.json $BOWER_DIR
replaceInFile "bower.json" "release\/" ""

echo "-- Updating version in ionic-bower to $VERSION"
replaceJsonProp "bower.json" "version" "$VERSION"

Expand Down

0 comments on commit c180a39

Please sign in to comment.