fix build testing

This commit is contained in:
Eugenio Romano
2020-07-18 22:54:19 +01:00
parent 6358f4b318
commit 44c5472fa2
2 changed files with 9 additions and 3 deletions

View File

@@ -3,10 +3,11 @@
"compilerOptions": {
"outDir": "../dist/testing/",
"baseUrl": "src",
"resolveJsonModule": true,
"paths": {
}
},
"esModuleInterop": true,
"resolveJsonModule": true,
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,

View File

@@ -7,10 +7,15 @@ cd $DIR/../..
echo "====== Testing ======"
echo "====== Build ======"
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/