mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
23 lines
677 B
Bash
Executable File
23 lines
677 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" $(npm bin)/nx build testing --configuration production || exit 1
|
|
else
|
|
echo "Building testing for development"
|
|
NODE_OPTIONS="--max-old-space-size=8192" $(npm bin)/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/
|