Eugenio Romano 59c2cb7df6 use nx
2020-07-17 15:59:03 +01:00

25 lines
623 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../..
echo "====== Testing ======"
echo "====== Build ======"
npm run ng-packagr -- -p ./lib/testing/
if [ "$CI" = "true" ]; then
echo "Building testing for production"
nx -- build testing --prod || exit 1
else
echo "Building testing for development"
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/
nx build testing || exit 1