From a09dddb2815250c3616da98446f3b83ba6866e6d Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Thu, 16 Nov 2017 17:12:08 +0000 Subject: [PATCH] fix check bundles script --- lib/config/webpack.build.js | 2 +- lib/content-services/package.json | 2 +- lib/core/package.json | 2 +- lib/insights/package.json | 2 +- lib/package.json | 8 ++++---- lib/process-services/package.json | 2 +- scripts/npm-check-bundles.sh | 12 ++++++------ 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/lib/config/webpack.build.js b/lib/config/webpack.build.js index e8f40c17ab..935cf69bb9 100644 --- a/lib/config/webpack.build.js +++ b/lib/config/webpack.build.js @@ -24,7 +24,7 @@ module.exports = webpackMerge(commonConfig, { ], output: { - filename: '[name]/bundles/[name].js', + filename: '[name]/bundles/adf-[name].js', library: '[name]', libraryTarget: 'umd', chunkFilename: '[id].chunk.js' diff --git a/lib/content-services/package.json b/lib/content-services/package.json index debc44b516..ca6318bcb2 100644 --- a/lib/content-services/package.json +++ b/lib/content-services/package.json @@ -3,7 +3,7 @@ "description": "Alfresco ADF content services", "version": "2.0.0", "author": "Alfresco Software, Ltd.", - "main": "bundles/content-services.js", + "main": "bundles/adf-content-services.js", "repository": { "type": "git", "url": "https://github.com/Alfresco/alfresco-ng2-components.git" diff --git a/lib/core/package.json b/lib/core/package.json index f6af4c5a34..dbda87a1bc 100644 --- a/lib/core/package.json +++ b/lib/core/package.json @@ -3,7 +3,7 @@ "description": "Alfresco ADF core", "version": "2.0.0", "author": "Alfresco Software, Ltd.", - "main": "bundles/process-services.js", + "main": "bundles/adf-process-services.js", "repository": { "type": "git", "url": "https://github.com/Alfresco/alfresco-ng2-components.git" diff --git a/lib/insights/package.json b/lib/insights/package.json index 1947a292cd..2d2eed05cc 100644 --- a/lib/insights/package.json +++ b/lib/insights/package.json @@ -3,7 +3,7 @@ "description": "Alfresco ADF insights", "version": "2.0.0", "author": "Alfresco Software, Ltd.", - "main": "bundles/analytics.js", + "main": "bundles/adf-analytics.js", "repository": { "type": "git", "url": "https://github.com/Alfresco/alfresco-ng2-components.git" diff --git a/lib/package.json b/lib/package.json index e50994196b..210b893f04 100644 --- a/lib/package.json +++ b/lib/package.json @@ -137,19 +137,19 @@ "license": "Apache-2.0", "bundlesize": [ { - "path": "./content-services/bundles/content-services.js", + "path": "./content-services/bundles/adf-content-services.js", "maxSize": "50 kb" }, { - "path": "./process-services/bundles/process-services.js", + "path": "./process-services/bundles/adf-process-services.js", "maxSize": "50 kb" }, { - "path": "./insights/bundles/insights.js", + "path": "./insights/bundles/adf-insights.js", "maxSize": "50 kb" }, { - "path": "./core/bundles/core.js", + "path": "./core/bundles/adf-core.js", "maxSize": "120 kb" } ], diff --git a/lib/process-services/package.json b/lib/process-services/package.json index 8bcbe74c7c..200903e2d2 100644 --- a/lib/process-services/package.json +++ b/lib/process-services/package.json @@ -3,7 +3,7 @@ "description": "Alfresco ADF process services", "version": "2.0.0", "author": "Alfresco Software, Ltd.", - "main": "bundles/process-services.js", + "main": "bundles/adf-process-services.js", "repository": { "type": "git", "url": "https://github.com/Alfresco/alfresco-ng2-components.git" diff --git a/scripts/npm-check-bundles.sh b/scripts/npm-check-bundles.sh index 18e15468bb..0c6920b907 100755 --- a/scripts/npm-check-bundles.sh +++ b/scripts/npm-check-bundles.sh @@ -4,10 +4,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" eval VERSION="" -eval projects=( "@alfresco/adf-core" - "@alfresco/insights" - "@alfresco/adf-content-services" - "@alfresco/adf-process-services" ) +eval projects=( "adf-core" + "insights" + "adf-content-services" + "adf-process-services" ) show_help() { echo "Usage: npm-check-bundles.sh" @@ -55,8 +55,8 @@ for PACKAGE in ${projects[@]} do mkdir $PACKAGE cd $PACKAGE - npm pack $PACKAGE@$VERSION - tar zxf $PACKAGE-$VERSION.tgz + npm pack '@alfresco/'$PACKAGE@$VERSION + tar zxf 'alfresco-'$PACKAGE-$VERSION.tgz if [ ! -f package/bundles/$PACKAGE.js ]; then error_out '31;1' "$PACKAGE bundles not found!" >&2 cd $DIR