diff --git a/lib/package.json b/lib/package.json index d3bf3f32bc..b9017c993f 100644 --- a/lib/package.json +++ b/lib/package.json @@ -10,6 +10,7 @@ "build": "npm run webpack -- --config config/webpack.build.js --progress --profile --bail && npm run build-style && npm run bundlesize-check", "test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .", "build-style": "npm run bundle-scss && npm run webpack -- --config config/webpack.style.js --progress --profile --bail", + "build-style-new": "npm run bundle-scss-new && npm run webpack -- --config config/webpack.style.js --progress --profile --bail", "bundle-scss": "node ./config/bundle-scss.js", "bundle-scss-new": "node ./config/bundle-scss-new.js", "test-browser": "node node_modules/karma/bin/karma start karma.conf.js --reporters kjhtml", @@ -23,7 +24,7 @@ "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-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 build-style-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-core": "ng-packagr -p ./ng-package/ng-package-core.json", "build-content": "ng-packagr -p ./ng-package/ng-package-content.json", diff --git a/scripts/npm-check-bundles.sh b/scripts/npm-check-bundles.sh index 5599a5dff1..6a7c9cf44e 100755 --- a/scripts/npm-check-bundles.sh +++ b/scripts/npm-check-bundles.sh @@ -58,6 +58,16 @@ do npm pack '@alfresco/'$PACKAGE@$VERSION tar zxf 'alfresco-'$PACKAGE-$VERSION.tgz + + if [ $PACKAGE == 'adf-core' ]; then + if [ ! -f package/prebuilt-themes/'adf-blue-orange.css' ]; then + error_out '31;1' "$PACKAGE prebuilt-theme not found!" >&2 + exit 1 + else + echo "prebuilt-theme ok!" + fi + fi + if [ ! -f package/bundles/$PACKAGE'.umd.js' ]; then error_out '31;1' "$PACKAGE bundles not found!" >&2 exit 1 @@ -97,6 +107,7 @@ do done cd .. +rm -rf temp set_npm_registry