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: {
filename: '[name]/bundles/[name].js',
filename: '[name]/bundles/adf-[name].js',
library: '[name]',
libraryTarget: 'umd',
chunkFilename: '[id].chunk.js'

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"

View File

@@ -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"
}
],

View File

@@ -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"

View File

@@ -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