diff --git a/scripts/next_version.sh b/scripts/next_version.sh index ca1f65c01e..3033a801f3 100755 --- a/scripts/next_version.sh +++ b/scripts/next_version.sh @@ -51,7 +51,7 @@ done if [[ "${EXEC_MINOR}" == true ]] then - ADF_VERSION=$(npm view ng2-alfresco-core version) + ADF_VERSION=$(npm view @alfresco/adf-core version) NEXT_VERSION=( ${ADF_VERSION//./ } ) ((NEXT_VERSION[1]++)) NEXT_VERSION[2]=0 @@ -60,7 +60,7 @@ fi if [[ "${EXEC_MAJOR}" == true ]] then - ADF_VERSION=$(npm view ng2-alfresco-core version) + ADF_VERSION=$(npm view @alfresco/adf-core version) NEXT_VERSION=( ${ADF_VERSION//./ } ) ((NEXT_VERSION[0]++)) NEXT_VERSION[1]=0 diff --git a/scripts/npm-build-all.sh b/scripts/npm-build-all.sh index 42c9fe1066..d7f29ecd89 100755 --- a/scripts/npm-build-all.sh +++ b/scripts/npm-build-all.sh @@ -23,8 +23,8 @@ eval projects=( "core" show_help() { echo "Usage: npm-build-all.sh" echo "" - echo "-t or --test Build your local components and run their tests, this parameter also accept a wildecard to execute test e.g: -t "ng2-alfresco-core"." - echo "-d or --debug Build your local components and run their tests IN THE BROWSER, this parameter also accept a wildecard to execute test e.g: -t "ng2-alfresco-core"." + echo "-t or --test Build your local components and run their tests, this parameter also accept a wildecard to execute test e.g: -t "core"." + echo "-d or --debug Build your local components and run their tests IN THE BROWSER, this parameter also accept a wildecard to execute test e.g: -t "core"." echo "-c or --clean Clean the node_modules before starting the build." echo "-si or --skipinstall Skip the install of node_modules before starting the build." echo "-sb or --skipbuild Skip the build of ng-components." diff --git a/scripts/update-version.sh b/scripts/update-version.sh index 520b7a3c5a..90ea74760f 100755 --- a/scripts/update-version.sh +++ b/scripts/update-version.sh @@ -23,6 +23,8 @@ show_help() { echo "-vj or -versionjsapi to use a different version of js-api" echo "-demoshell execute the change version only in the demo shell " echo "-v or -version version to update" + echo "-nextalpha update next alpha version of js-api and lib automatically" + echo "-nextbeta update next beta version of js-api and lib automatically" 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" @@ -47,7 +49,7 @@ last_alpha_mode() { next_alpha_mode() { echo "====== Auto find next ALPHA version =====" - VERSION=$(./next_version.sh -major -alpha) + VERSION=$(./next_version.sh -minor -alpha) echo "====== version lib ${VERSION} =====" @@ -59,7 +61,7 @@ next_alpha_mode() { next_beta_mode() { echo "====== Auto find next BETA version =====" - VERSION=$(./next_version.sh -major -beta) + VERSION=$(./next_version.sh -minor -beta) echo "====== version lib ${VERSION} =====" @@ -71,7 +73,7 @@ next_beta_mode() { last_beta_mode() { echo "====== Auto find last BETA version =====" - VERSION=$(npm view ng2-alfresco-core@beta version) + VERSION=$(npm view @alfresco/adf-core@beta version) echo "====== version lib ${VERSION} ====="