mirror of
https://github.com/silkimen/cordova-plugin-advanced-http.git
synced 2026-04-24 00:00:03 +08:00
- improved release process (using npm script)
- updated version number
This commit is contained in:
+3
-2
@@ -1,9 +1,10 @@
|
|||||||
{
|
{
|
||||||
"name": "cordova-plugin-advanced-http",
|
"name": "cordova-plugin-advanced-http",
|
||||||
"version": "1.6.1",
|
"version": "1.6.2",
|
||||||
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
|
"description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "./scripts/build-test-app.sh && ./scripts/test.sh --ios --emulator"
|
"test": "./scripts/build-test-app.sh && ./scripts/test.sh --ios --emulator",
|
||||||
|
"release": "npm run test && ./scripts/release.sh"
|
||||||
},
|
},
|
||||||
"cordova": {
|
"cordova": {
|
||||||
"id": "cordova-plugin-advanced-http",
|
"id": "cordova-plugin-advanced-http",
|
||||||
|
|||||||
@@ -1,10 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
VERSION=$(node -e "console.log(require('./package.json').version)")
|
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"/..
|
||||||
|
|
||||||
|
pushd $ROOT
|
||||||
|
VERSION=$(node -e "console.log(require('./package.json').version)")
|
||||||
./scripts/update-tough-cookie.sh
|
./scripts/update-tough-cookie.sh
|
||||||
node ./scripts/update-plugin-xml.js $VERSION
|
node ./scripts/update-plugin-xml.js $VERSION
|
||||||
git commit -a -m "release v$VERSION"
|
git commit -a -m "release v$VERSION"
|
||||||
git tag "v$VERSION"
|
git tag "v$VERSION"
|
||||||
npm publish
|
npm publish
|
||||||
|
popd
|
||||||
Reference in New Issue
Block a user