mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
use nx
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user