fix check bundles and copy i18n and assets

This commit is contained in:
Eugenio Romano
2017-11-22 13:27:18 +00:00
parent d34a2089a7
commit ed6aa1a0c1
2 changed files with 4 additions and 5 deletions

View File

@@ -21,8 +21,8 @@
"doc": "npm run toc && npm run markdownlint && npm run webpack -- --config config/webpack.doc.js --progress --profile --bail", "doc": "npm run toc && npm run markdownlint && npm run webpack -- --config config/webpack.doc.js --progress --profile --bail",
"docindex": "node config/buildFullDocIndex.js", "docindex": "node config/buildFullDocIndex.js",
"mv-es5": "mv core/dist/@alfresco core/dist/esm5 && mv content-services/dist/@alfresco content-services/dist/esm5 && mv process-services/dist/@alfresco process-services/dist/esm5 && mv insights/dist/@alfresco insights/dist/esm5 ", "mv-es5": "mv core/dist/@alfresco core/dist/esm5 && mv content-services/dist/@alfresco content-services/dist/esm5 && mv process-services/dist/@alfresco process-services/dist/esm5 && mv insights/dist/@alfresco insights/dist/esm5 ",
"copy-i18n": "mkdir -p core/dist/bundles/assets/adf-core/i18n && cp -R core/i18n/ core/dist/bundles/assets/adf-core/i18n && mkdir -p content-services/dist/bundles/assets/adf-content-services/i18n && cp -R content-services/i18n/ content-services/dist/bundles/assets/adf-content-services/i18n && mkdir -p process-services/dist/bundles/assets/adf-process-services/i18n && cp -R process-services/i18n/ process-services/dist/bundles/assets/adf-process-services/i18n && mkdir -p insights/dist/bundles/assets/adf-insights/i18n && cp -R insights/i18n/ insights/dist/bundles/assets/adf-insights/i18n", "copy-i18n": "mkdir -p core/dist/bundles/assets/adf-core/i18n && cp -R core/i18n/* core/dist/bundles/assets/adf-core/i18n && mkdir -p content-services/dist/bundles/assets/adf-content-services/i18n && cp -R content-services/i18n/* content-services/dist/bundles/assets/adf-content-services/i18n && mkdir -p process-services/dist/bundles/assets/adf-process-services/i18n && cp -R process-services/i18n/* process-services/dist/bundles/assets/adf-process-services/i18n && mkdir -p insights/dist/bundles/assets/adf-insights/i18n && cp -R insights/i18n/* insights/dist/bundles/assets/adf-insights/i18n",
"copy-assets": "cp -R core/assets/ core/dist/bundles/assets && cp -R content-services/assets/ content-services/dist/bundles/assets && cp -R process-services/assets/ process-services/dist/bundles/assets", "copy-assets": "cp -R core/assets/* core/dist/bundles/assets && cp -R content-services/assets/* content-services/dist/bundles/assets && cp -R process-services/assets/* process-services/dist/bundles/assets",
"new-build": "npm run build-bundles && npm run bundle-scss-new && npm run copy-i18n && npm run copy-assets && npm run mv-es5", "new-build": "npm run build-bundles && npm run bundle-scss-new && npm run copy-i18n && npm run copy-assets && npm run mv-es5",
"build-bundles": "npm run build-core && mkdir -p ./node_modules/@alfresco/adf-core/ && cp -R ./core/dist/* ./node_modules/@alfresco/adf-core/ && npm run build-content && npm run build-process && npm run build-insights", "build-bundles": "npm run build-core && mkdir -p ./node_modules/@alfresco/adf-core/ && cp -R ./core/dist/* ./node_modules/@alfresco/adf-core/ && npm run build-content && npm run build-process && npm run build-insights",
"build-core": "ng-packagr -p ./ng-package/ng-package-core.json", "build-core": "ng-packagr -p ./ng-package/ng-package-core.json",

View File

@@ -58,14 +58,14 @@ do
npm pack '@alfresco/'$PACKAGE@$VERSION npm pack '@alfresco/'$PACKAGE@$VERSION
tar zxf 'alfresco-'$PACKAGE-$VERSION.tgz tar zxf 'alfresco-'$PACKAGE-$VERSION.tgz
if [ ! -f package/bundles/$PACKAGE.js ]; then if [ ! -f package/bundles/$PACKAGE'.umd.js' ]; then
error_out '31;1' "$PACKAGE bundles not found!" >&2 error_out '31;1' "$PACKAGE bundles not found!" >&2
exit 1 exit 1
else else
echo "bundles ok!" echo "bundles ok!"
fi fi
if [ ! -f package/bundles/$PACKAGE.js.map ]; then if [ ! -f package/bundles/$PACKAGE'.umd.js.map' ]; then
error_out '31;1' "$PACKAGE js.map not found!" >&2 error_out '31;1' "$PACKAGE js.map not found!" >&2
exit 1 exit 1
else else
@@ -97,7 +97,6 @@ do
done done
cd .. cd ..
rm -rf temp
set_npm_registry set_npm_registry