fix check bundles script

This commit is contained in:
Eugenio Romano
2017-11-16 17:12:08 +00:00
parent ac643e506a
commit a09dddb281
7 changed files with 15 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ module.exports = webpackMerge(commonConfig, {
], ],
output: { output: {
filename: '[name]/bundles/[name].js', filename: '[name]/bundles/adf-[name].js',
library: '[name]', library: '[name]',
libraryTarget: 'umd', libraryTarget: 'umd',
chunkFilename: '[id].chunk.js' chunkFilename: '[id].chunk.js'

View File

@@ -3,7 +3,7 @@
"description": "Alfresco ADF content services", "description": "Alfresco ADF content services",
"version": "2.0.0", "version": "2.0.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "bundles/content-services.js", "main": "bundles/adf-content-services.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Alfresco/alfresco-ng2-components.git" "url": "https://github.com/Alfresco/alfresco-ng2-components.git"

View File

@@ -3,7 +3,7 @@
"description": "Alfresco ADF core", "description": "Alfresco ADF core",
"version": "2.0.0", "version": "2.0.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "bundles/process-services.js", "main": "bundles/adf-process-services.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Alfresco/alfresco-ng2-components.git" "url": "https://github.com/Alfresco/alfresco-ng2-components.git"

View File

@@ -3,7 +3,7 @@
"description": "Alfresco ADF insights", "description": "Alfresco ADF insights",
"version": "2.0.0", "version": "2.0.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "bundles/analytics.js", "main": "bundles/adf-analytics.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Alfresco/alfresco-ng2-components.git" "url": "https://github.com/Alfresco/alfresco-ng2-components.git"

View File

@@ -137,19 +137,19 @@
"license": "Apache-2.0", "license": "Apache-2.0",
"bundlesize": [ "bundlesize": [
{ {
"path": "./content-services/bundles/content-services.js", "path": "./content-services/bundles/adf-content-services.js",
"maxSize": "50 kb" "maxSize": "50 kb"
}, },
{ {
"path": "./process-services/bundles/process-services.js", "path": "./process-services/bundles/adf-process-services.js",
"maxSize": "50 kb" "maxSize": "50 kb"
}, },
{ {
"path": "./insights/bundles/insights.js", "path": "./insights/bundles/adf-insights.js",
"maxSize": "50 kb" "maxSize": "50 kb"
}, },
{ {
"path": "./core/bundles/core.js", "path": "./core/bundles/adf-core.js",
"maxSize": "120 kb" "maxSize": "120 kb"
} }
], ],

View File

@@ -3,7 +3,7 @@
"description": "Alfresco ADF process services", "description": "Alfresco ADF process services",
"version": "2.0.0", "version": "2.0.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "bundles/process-services.js", "main": "bundles/adf-process-services.js",
"repository": { "repository": {
"type": "git", "type": "git",
"url": "https://github.com/Alfresco/alfresco-ng2-components.git" "url": "https://github.com/Alfresco/alfresco-ng2-components.git"

View File

@@ -4,10 +4,10 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
eval VERSION="" eval VERSION=""
eval projects=( "@alfresco/adf-core" eval projects=( "adf-core"
"@alfresco/insights" "insights"
"@alfresco/adf-content-services" "adf-content-services"
"@alfresco/adf-process-services" ) "adf-process-services" )
show_help() { show_help() {
echo "Usage: npm-check-bundles.sh" echo "Usage: npm-check-bundles.sh"
@@ -55,8 +55,8 @@ for PACKAGE in ${projects[@]}
do do
mkdir $PACKAGE mkdir $PACKAGE
cd $PACKAGE cd $PACKAGE
npm pack $PACKAGE@$VERSION npm pack '@alfresco/'$PACKAGE@$VERSION
tar zxf $PACKAGE-$VERSION.tgz tar zxf 'alfresco-'$PACKAGE-$VERSION.tgz
if [ ! -f package/bundles/$PACKAGE.js ]; then if [ ! -f package/bundles/$PACKAGE.js ]; then
error_out '31;1' "$PACKAGE bundles not found!" >&2 error_out '31;1' "$PACKAGE bundles not found!" >&2
cd $DIR cd $DIR