mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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
This commit is contained in:
@@ -9,14 +9,14 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building content-services for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build content-services --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build content-services --configuration production || exit 1
|
||||
else
|
||||
echo "Building content-services for development"
|
||||
nx build content-services || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build content-services || exit 1
|
||||
fi
|
||||
|
||||
echo "====== Build style ======"
|
||||
node ./lib/config/bundle-content-services-scss.js || exit 1
|
||||
echo "====== Bundle styles ======"
|
||||
npm run scss-bundle:content-services || exit 1
|
||||
|
||||
echo "====== Copy i18n ======"
|
||||
mkdir -p ./lib/dist/content-services/bundles/assets/adf-content-services/i18n
|
||||
|
@@ -9,14 +9,14 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building core for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build core --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build core --configuration production || exit 1
|
||||
else
|
||||
echo "Building core for development"
|
||||
nx build core || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build core || exit 1
|
||||
fi
|
||||
|
||||
echo "====== Build style ======"
|
||||
node ./lib/config/bundle-core-scss.js || exit 1
|
||||
echo "====== Bundle styles ======"
|
||||
npm run scss-bundle:core || exit 1
|
||||
|
||||
echo "====== Copy i18n ======"
|
||||
mkdir -p ./lib/dist/core/bundles/assets/adf-core/i18n
|
||||
|
@@ -7,8 +7,8 @@ cd $DIR/../..
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building extensions for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build extensions --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build extensions --configuration production || exit 1
|
||||
else
|
||||
echo "Building extensions for development"
|
||||
nx build extensions || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build extensions || exit 1
|
||||
fi
|
||||
|
@@ -9,14 +9,14 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building insights for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build insights --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build insights --configuration production || exit 1
|
||||
else
|
||||
echo "Building insights for development"
|
||||
nx build insights || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build insights || exit 1
|
||||
fi
|
||||
|
||||
echo "====== Build style ======"
|
||||
node ./lib/config/bundle-insights-scss.js || exit 1
|
||||
echo "====== Bundle styles ======"
|
||||
npm run scss-bundle:insights || exit 1
|
||||
|
||||
echo "====== Copy i18n ======"
|
||||
mkdir -p ./lib/dist/insights/bundles/assets/adf-insights/i18n
|
||||
|
@@ -9,14 +9,14 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building process-services-cloud for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services-cloud --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services-cloud --configuration production || exit 1
|
||||
else
|
||||
echo "Building process-services-cloud for development"
|
||||
nx build process-services-cloud || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services-cloud || exit 1
|
||||
fi
|
||||
|
||||
echo "====== Build style ======"
|
||||
node ./lib/config/bundle-process-services-cloud-scss.js || exit 1
|
||||
echo "====== Bundle styles ======"
|
||||
npm run scss-bundle:process-services-cloud || exit 1
|
||||
|
||||
echo "====== Copy i18n ======"
|
||||
mkdir -p ./lib/dist/process-services-cloud/bundles/assets/adf-process-services-cloud/i18n
|
||||
|
@@ -9,14 +9,14 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building process-services for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services --configuration production || exit 1
|
||||
else
|
||||
echo "Building process-services for development"
|
||||
nx build process-services || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build process-services || exit 1
|
||||
fi
|
||||
|
||||
echo "====== Build style ======"
|
||||
node ./lib/config/bundle-process-services-scss.js || exit 1
|
||||
echo "====== Bundle styles ======"
|
||||
npm run scss-bundle:process-services || exit 1
|
||||
|
||||
echo "====== Copy i18n ======"
|
||||
mkdir -p ./lib/dist/process-services/bundles/assets/adf-process-services/i18n
|
||||
|
@@ -10,10 +10,10 @@ echo "====== Build ======"
|
||||
|
||||
if [ "$CI" = "true" ]; then
|
||||
echo "Building testing for production"
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build testing --prod || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build testing --configuration production || exit 1
|
||||
else
|
||||
echo "Building testing for development"
|
||||
nx build testing || exit 1
|
||||
NODE_OPTIONS="--max-old-space-size=8192" nx build testing || exit 1
|
||||
fi
|
||||
|
||||
echo "====== Move to node_modules ======"
|
||||
|
Reference in New Issue
Block a user