This commit is contained in:
Eugenio Romano 2020-07-17 15:59:03 +01:00
parent f75151d6c6
commit 59c2cb7df6
7 changed files with 16 additions and 15 deletions

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building content-services for production" echo "Building content-services for production"
npm run ng -- build content-services --prod || exit 1 nx build content-services --prod || exit 1
else else
echo "Building content-services for development" echo "Building content-services for development"
npm run ng -- build content-services || exit 1 nx build content-services || exit 1
fi fi
echo "====== Build style ======" echo "====== Build style ======"

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building core for production" echo "Building core for production"
npm run ng -- build core --prod || exit 1 nx build core --prod || exit 1
else else
echo "Building core for development" echo "Building core for development"
npm run ng -- build core || exit 1 nx build core || exit 1
fi fi
echo "====== Build style ======" echo "====== Build style ======"

View File

@ -6,8 +6,8 @@ cd $DIR/../..
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building extensions for production" echo "Building extensions for production"
npm run ng -- build extensions --prod || exit 1 nx build extensions --prod || exit 1
else else
echo "Building extensions for development" echo "Building extensions for development"
npm run ng -- build extensions || exit 1 nx build extensions || exit 1
fi fi

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building insights for production" echo "Building insights for production"
npm run ng -- build insights --prod || exit 1 nx build insights --prod || exit 1
else else
echo "Building insights for development" echo "Building insights for development"
npm run ng -- build insights || exit 1 nx build insights || exit 1
fi fi
echo "====== Build style ======" echo "====== Build style ======"

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building process-services-cloud for production" echo "Building process-services-cloud for production"
npm run ng -- build process-services-cloud --prod || exit 1 nx build process-services-cloud --prod || exit 1
else else
echo "Building process-services-cloud for development" echo "Building process-services-cloud for development"
npm run ng -- build process-services-cloud || exit 1 nx build process-services-cloud || exit 1
fi fi
echo "====== Build style ======" echo "====== Build style ======"

View File

@ -9,10 +9,10 @@ echo "====== Build ======"
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building process-services for production" echo "Building process-services for production"
npm run ng -- build process-services --prod || exit 1 nx build process-services --prod || exit 1
else else
echo "Building process-services for development" echo "Building process-services for development"
npm run ng -- build process-services || exit 1 nx build process-services || exit 1
fi fi
echo "====== Build style ======" echo "====== Build style ======"

View File

@ -7,17 +7,18 @@ cd $DIR/../..
echo "====== Testing ======" echo "====== Testing ======"
echo "====== Build ======" echo "====== Build ======"
npm run ng-packagr -- -p ./lib/testing/
if [ "$CI" = "true" ]; then if [ "$CI" = "true" ]; then
echo "Building testing for production" echo "Building testing for production"
npm run ng -- build testing --prod || exit 1 nx -- build testing --prod || exit 1
else else
echo "Building testing for development" echo "Building testing for development"
npm run ng -- build testing || exit 1 nx build testing || exit 1
fi fi
echo "====== Move to node_modules ======" echo "====== Move to node_modules ======"
rm -rf ./node_modules/@alfresco/adf-testing/ && \ rm -rf ./node_modules/@alfresco/adf-testing/ && \
mkdir -p ./node_modules/@alfresco/adf-testing/ && \ mkdir -p ./node_modules/@alfresco/adf-testing/ && \
cp -R ./lib/dist/testing/* ./node_modules/@alfresco/adf-testing/ cp -R ./lib/dist/testing/* ./node_modules/@alfresco/adf-testing/
npm run ng -- build testing || exit 1 nx build testing || exit 1