mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix production builds (#6075)
* run builds scripts sequentially * temporary enable prod builds * use ng instead of nx for adf-core * increase mem * downgrage the ts target * downgrade main tsconfig * update config * downgrade scss-bundle * raise mem only for prod builds * restore dev build * update angular cdk * try restore build target * upgrade unit tests after angular upgrade * fix tests after angular upgrade * remove old e2e
This commit is contained in:
@@ -7,11 +7,9 @@ cd $DIR/../..
|
||||
echo "====== Content Services ======"
|
||||
echo "====== Build ======"
|
||||
|
||||
export NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building content-services for production"
|
||||
nx build content-services --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build content-services --prod || exit 1
|
||||
else
|
||||
echo "Building content-services for development"
|
||||
nx build content-services || exit 1
|
||||
|
@@ -9,7 +9,7 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building core for production"
|
||||
node --max_old_space_size=8192 ./node_modules/@nrwl/cli/bin/nx build core --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build core --prod || exit 1
|
||||
else
|
||||
echo "Building core for development"
|
||||
nx build core || exit 1
|
||||
|
@@ -4,11 +4,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
cd $DIR/../..
|
||||
|
||||
export NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building extensions for production"
|
||||
nx build extensions --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build extensions --prod || exit 1
|
||||
else
|
||||
echo "Building extensions for development"
|
||||
nx build extensions || exit 1
|
||||
|
@@ -7,11 +7,9 @@ cd $DIR/../..
|
||||
echo "====== Insights ======"
|
||||
echo "====== Build ======"
|
||||
|
||||
export NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building insights for production"
|
||||
nx build insights --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build insights --prod || exit 1
|
||||
else
|
||||
echo "Building insights for development"
|
||||
nx build insights || exit 1
|
||||
|
@@ -7,11 +7,9 @@ cd $DIR/../..
|
||||
echo "====== Process Services Cloud ======"
|
||||
echo "====== Build ======"
|
||||
|
||||
export NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building process-services-cloud for production"
|
||||
nx build process-services-cloud --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services-cloud --prod || exit 1
|
||||
else
|
||||
echo "Building process-services-cloud for development"
|
||||
nx build process-services-cloud || exit 1
|
||||
|
@@ -7,11 +7,9 @@ cd $DIR/../..
|
||||
echo "====== Process Services ======"
|
||||
echo "====== Build ======"
|
||||
|
||||
export NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building process-services for production"
|
||||
nx build process-services --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services --prod || exit 1
|
||||
else
|
||||
echo "Building process-services for development"
|
||||
nx build process-services || exit 1
|
||||
|
@@ -7,11 +7,10 @@ cd $DIR/../..
|
||||
echo "====== Testing ======"
|
||||
echo "====== Build ======"
|
||||
|
||||
export NODE_OPTIONS=--max_old_space_size=8192
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building testing for production"
|
||||
nx build testing --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build testing --prod || exit 1
|
||||
else
|
||||
echo "Building testing for development"
|
||||
nx build testing || exit 1
|
||||
|
Reference in New Issue
Block a user