Denys Vuika c1860f0c1f
[ADF-5410] code fixes and updates prior to Angular 12 upgrade (#7177)
* package fixes

* upgrade stylelint config

* upgrade configuration and stats

* code fixes based on Angular upgrade

* rework scss-bundle usage

* use node 14 with travis (lts)

* fix production builds

* fix node sass version
2021-07-15 12:48:23 +01:00

23 lines
655 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../..
echo "====== Testing ======"
echo "====== Build ======"
if [ "$CI" = "true" ]; then
echo "Building testing for production"
NODE_OPTIONS="--max-old-space-size=8192" nx build testing --configuration production || exit 1
else
echo "Building testing for development"
NODE_OPTIONS="--max-old-space-size=8192" 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/