mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix check bundles script
This commit is contained in:
@@ -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'
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
|
@@ -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"
|
||||
}
|
||||
],
|
||||
|
@@ -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"
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user