mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 08:32:52 +08:00
Bower release
This commit is contained in:
parent
29816f7ab5
commit
f23436fe6d
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
.idea
|
.idea
|
||||||
dist/
|
dist/
|
||||||
|
scripts/ionic-native-bower
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
"hybrid",
|
"hybrid",
|
||||||
"mobile"
|
"mobile"
|
||||||
],
|
],
|
||||||
"homepage": "https://github.com/driftyco/ionic-native",
|
"homepage": "https://github.com/driftyco/ionic-native-bower",
|
||||||
"ignore": [
|
"ignore": [
|
||||||
"**/.*",
|
"**/.*",
|
||||||
"node_modules",
|
"node_modules",
|
||||||
|
27
scripts/bower.sh
Normal file
27
scripts/bower.sh
Normal 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"
|
Loading…
Reference in New Issue
Block a user