Bower release

This commit is contained in:
Max Lynch 2016-08-02 11:03:23 -05:00
parent 29816f7ab5
commit f23436fe6d
3 changed files with 29 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
node_modules/
.idea
dist/
scripts/ionic-native-bower

View File

@ -13,7 +13,7 @@
"hybrid",
"mobile"
],
"homepage": "https://github.com/driftyco/ionic-native",
"homepage": "https://github.com/driftyco/ionic-native-bower",
"ignore": [
"**/.*",
"node_modules",

27
scripts/bower.sh Normal file
View File

@ -0,0 +1,27 @@
#!/bin/bash
set -e
# readJsonProp(jsonFile, property)
# - restriction: property needs to be on an own line!
function readJsonProp {
echo $(sed -En 's/.*"'$2'"[ ]*:[ ]*"(.*)".*/\1/p' $1)
}
VERSION=$(readJsonProp "package.json" "version")
echo "BOWERING IONIC-NATIVE VERSION $VERSION. FOR GREAT JUSTICE..."
DIR="scripts/ionic-native-bower"
rm -rf $DIR
mkdir $DIR
cp dist/ionic.native.js dist/ionic.native.min.js $DIR
cd $DIR
git init
git remote add origin git@github.com:driftyco/ionic-native-bower.git
git add .
git commit -m "Bower release"
git tag -f -m v$VERSION v$VERSION
git push -f --tags origin master
echo "BOWERING COMPLETED SOMEWHAT SUCCESSFULLY"