production builds for CI runs

This commit is contained in:
Denys Vuika
2020-07-03 18:25:49 +01:00
parent f691dc90dc
commit 298fec08c1
15 changed files with 91 additions and 7 deletions

View File

@@ -10,5 +10,10 @@
"@alfresco/adf-core": ["../../dist/core"],
"@alfresco/adf-core/*": ["../../dist/core/*"]
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -8,5 +8,10 @@
"@alfresco/adf-extensions": ["../dist/extensions"],
"@alfresco/adf-extensions/*": ["../dist/extensions/*"]
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -3,5 +3,10 @@
"compilerOptions": {
"outDir": "../dist/extensions/",
"baseUrl": "src"
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -10,5 +10,10 @@
"@alfresco/adf-core": ["../../dist/core"],
"@alfresco/adf-core/*": ["../../dist/core/*"]
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -12,5 +12,10 @@
"@alfresco/adf-content-services": ["../../dist/content-services"],
"@alfresco/adf-content-services/*": ["../../dist/content-services/*"]
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -28,4 +28,5 @@ export * from './lib/pipes/process-services-pipe.module';
export * from './lib/pipes/process-name.pipe';
export * from './lib/pipes/process-services-pipe.module';
export * from './lib/material.module';
export * from './lib/process.module';

View File

@@ -12,5 +12,10 @@
"@alfresco/adf-content-services": ["../../dist/content-services"],
"@alfresco/adf-content-services/*": ["../../dist/content-services/*"]
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -5,5 +5,10 @@
"baseUrl": "src",
"paths": {
}
},
"angularCompilerOptions": {
"skipTemplateCodegen": true,
"strictMetadataEmit": true,
"enableResourceInlining": true
}
}

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Content Services ======"
echo "====== Build ======"
npm run ng -- build content-services || exit 1
if [ "$CI" = "true" ]; then
echo "Building content-services for production"
npm run ng -- build content-services --prod || exit 1
else
echo "Building content-services for development"
npm run ng -- build content-services || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-content-services-scss.js || exit 1

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Core ======"
echo "====== Build ======"
npm run ng -- build core|| exit 1
if [ "$CI" = "true" ]; then
echo "Building core for production"
npm run ng -- build core --prod || exit 1
else
echo "Building core for development"
npm run ng -- build core || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-core-scss.js || exit 1

View File

@@ -4,4 +4,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../..
npm run ng -- build extensions
if [ "$CI" = "true" ]; then
echo "Building extensions for production"
npm run ng -- build extensions --prod || exit 1
else
echo "Building extensions for development"
npm run ng -- build extensions || exit 1
fi

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Insights ======"
echo "====== Build ======"
npm run ng -- build insights || exit 1
if [ "$CI" = "true" ]; then
echo "Building insights for production"
npm run ng -- build insights --prod || exit 1
else
echo "Building insights for development"
npm run ng -- build insights || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-insights-scss.js || exit 1

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Process Services Cloud ======"
echo "====== Build ======"
npm run ng -- build process-services-cloud || exit 1
if [ "$CI" = "true" ]; then
echo "Building process-services-cloud for production"
npm run ng -- build process-services-cloud --prod || exit 1
else
echo "Building process-services-cloud for development"
npm run ng -- build process-services-cloud || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-process-services-cloud-scss.js || exit 1

View File

@@ -6,7 +6,14 @@ cd $DIR/../..
echo "====== Process Services ======"
echo "====== Build ======"
npm run ng -- build process-services || exit 1
if [ "$CI" = "true" ]; then
echo "Building process-services for production"
npm run ng -- build process-services --prod || exit 1
else
echo "Building process-services for development"
npm run ng -- build process-services || exit 1
fi
echo "====== Build style ======"
node ./lib/config/bundle-process-services-scss.js || exit 1

View File

@@ -6,4 +6,11 @@ cd $DIR/../..
echo "====== Testing ======"
echo "====== Build ======"
npm run ng -- build testing || exit 1
if [ "$CI" = "true" ]; then
echo "Building testing for production"
npm run ng -- build testing --prod || exit 1
else
echo "Building testing for development"
npm run ng -- build testing || exit 1
fi