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

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