mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
update script
This commit is contained in:
@@ -51,7 +51,7 @@ done
|
|||||||
|
|
||||||
if [[ "${EXEC_MINOR}" == true ]]
|
if [[ "${EXEC_MINOR}" == true ]]
|
||||||
then
|
then
|
||||||
ADF_VERSION=$(npm view ng2-alfresco-core version)
|
ADF_VERSION=$(npm view @alfresco/adf-core version)
|
||||||
NEXT_VERSION=( ${ADF_VERSION//./ } )
|
NEXT_VERSION=( ${ADF_VERSION//./ } )
|
||||||
((NEXT_VERSION[1]++))
|
((NEXT_VERSION[1]++))
|
||||||
NEXT_VERSION[2]=0
|
NEXT_VERSION[2]=0
|
||||||
@@ -60,7 +60,7 @@ fi
|
|||||||
|
|
||||||
if [[ "${EXEC_MAJOR}" == true ]]
|
if [[ "${EXEC_MAJOR}" == true ]]
|
||||||
then
|
then
|
||||||
ADF_VERSION=$(npm view ng2-alfresco-core version)
|
ADF_VERSION=$(npm view @alfresco/adf-core version)
|
||||||
NEXT_VERSION=( ${ADF_VERSION//./ } )
|
NEXT_VERSION=( ${ADF_VERSION//./ } )
|
||||||
((NEXT_VERSION[0]++))
|
((NEXT_VERSION[0]++))
|
||||||
NEXT_VERSION[1]=0
|
NEXT_VERSION[1]=0
|
||||||
|
@@ -23,8 +23,8 @@ eval projects=( "core"
|
|||||||
show_help() {
|
show_help() {
|
||||||
echo "Usage: npm-build-all.sh"
|
echo "Usage: npm-build-all.sh"
|
||||||
echo ""
|
echo ""
|
||||||
echo "-t or --test <pkg> Build your local components and run their tests, this parameter also accept a wildecard to execute test e.g: -t "ng2-alfresco-core"."
|
echo "-t or --test <pkg> 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 <pkg> 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 "-d or --debug <pkg> 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 "-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 "-si or --skipinstall Skip the install of node_modules before starting the build."
|
||||||
echo "-sb or --skipbuild Skip the build of ng-components."
|
echo "-sb or --skipbuild Skip the build of ng-components."
|
||||||
|
@@ -23,6 +23,8 @@ show_help() {
|
|||||||
echo "-vj or -versionjsapi to use a different version of js-api"
|
echo "-vj or -versionjsapi to use a different version of js-api"
|
||||||
echo "-demoshell execute the change version only in the demo shell "
|
echo "-demoshell execute the change version only in the demo shell "
|
||||||
echo "-v or -version version to update"
|
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 "-alpha update last alpha version of js-api and lib automatically"
|
||||||
echo "-beta update beta alpha version of js-api and lib automatically"
|
echo "-beta update beta alpha version of js-api and lib automatically"
|
||||||
echo "-gnu for gnu"
|
echo "-gnu for gnu"
|
||||||
@@ -47,7 +49,7 @@ last_alpha_mode() {
|
|||||||
|
|
||||||
next_alpha_mode() {
|
next_alpha_mode() {
|
||||||
echo "====== Auto find next ALPHA version ====="
|
echo "====== Auto find next ALPHA version ====="
|
||||||
VERSION=$(./next_version.sh -major -alpha)
|
VERSION=$(./next_version.sh -minor -alpha)
|
||||||
|
|
||||||
echo "====== version lib ${VERSION} ====="
|
echo "====== version lib ${VERSION} ====="
|
||||||
|
|
||||||
@@ -59,7 +61,7 @@ next_alpha_mode() {
|
|||||||
|
|
||||||
next_beta_mode() {
|
next_beta_mode() {
|
||||||
echo "====== Auto find next BETA version ====="
|
echo "====== Auto find next BETA version ====="
|
||||||
VERSION=$(./next_version.sh -major -beta)
|
VERSION=$(./next_version.sh -minor -beta)
|
||||||
|
|
||||||
echo "====== version lib ${VERSION} ====="
|
echo "====== version lib ${VERSION} ====="
|
||||||
|
|
||||||
@@ -71,7 +73,7 @@ next_beta_mode() {
|
|||||||
|
|
||||||
last_beta_mode() {
|
last_beta_mode() {
|
||||||
echo "====== Auto find last BETA version ====="
|
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} ====="
|
echo "====== version lib ${VERSION} ====="
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user