new update last beta version script

This commit is contained in:
Eugenio Romano
2017-11-18 13:23:44 +00:00
parent 93975e2558
commit 85c2189e0b
3 changed files with 21 additions and 6 deletions

View File

@@ -24,6 +24,7 @@ show_help() {
echo "-demoshell execute the change version only in the demo shell "
echo "-v or -version version to update"
echo "-alpha update last alpha version of js-api and lib automatically"
echo "-beta update beta alpha version of js-api and lib automatically"
echo "-gnu for gnu"
}
@@ -33,7 +34,7 @@ skip_js() {
}
last_alpha_mode() {
echo "====== Auto find last version ====="
echo "====== Auto find last ALPHA version ====="
JS_API=false
VERSION=$(npm view @alfresco/adf-core@alpha version)
@@ -44,6 +45,18 @@ last_alpha_mode() {
echo "====== version js-api ${DIFFERENT_JS_API} ====="
}
last_beta_mode() {
echo "====== Auto find last BETA version ====="
JS_API=false
VERSION=$(npm view @alfresco/adf-core@beta version)
echo "====== version lib ${VERSION} ====="
DIFFERENT_JS_API=$(npm view alfresco-js-api@beta version)
echo "====== version js-api ${DIFFERENT_JS_API} ====="
}
gnu_mode() {
echo "====== GNU MODE ====="
GNU=true
@@ -163,6 +176,7 @@ while [[ $1 == -* ]]; do
-vj|versionjsapi) version_js_change $2; shift 2;;
-gnu) gnu_mode; shift;;
-alpha) last_alpha_mode; shift;;
-beta) last_beta_mode; shift;;
-demoshell) only_demoshell; shift;;
-*) shift;;
esac