mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
* coverage single components run fix * remove spec.ts from coverage * make the coverage and the istanbul-instrumenter-loader works only over the console test because a problem on the remapping for the browser test * move tslint on the main folder of any component * remove build:w from readme * stop build tslint error also in spec files * clear karma file from unnecessary files * add set -f for build all script in order to accept * * fix lint problem and failing tests * fix failing test search component * add loader test for viewer * fix tslint error userinfo * --max_old_space_size=2048 remove * fix tslint error uploader unused EventEmitter * remove spec|index|.*mock|.*model|.*event from coverage
67 lines
2.2 KiB
JavaScript
67 lines
2.2 KiB
JavaScript
const webpack = require('webpack');
|
|
const webpackMerge = require('webpack-merge');
|
|
const commonConfig = require('./webpack.common.js');
|
|
|
|
module.exports = webpackMerge(commonConfig, {
|
|
|
|
// require those dependencies but don't bundle them
|
|
externals: [
|
|
/^\@angular\//,
|
|
/^rxjs\//,
|
|
'moment',
|
|
'raphael',
|
|
'ng2-charts',
|
|
'alfresco-js-api',
|
|
'ng2-alfresco-core',
|
|
'ng2-alfresco-datatable',
|
|
'ng2-activiti-analytics',
|
|
'ng2-activiti-diagrams',
|
|
'ng2-activiti-form',
|
|
"ng2-activiti-tasklist",
|
|
'ng2-alfresco-documentlist'
|
|
],
|
|
|
|
output: {
|
|
filename: '[name]/bundles/[name].js',
|
|
library: '[name]',
|
|
libraryTarget: 'umd',
|
|
chunkFilename: '[id].chunk.js'
|
|
},
|
|
|
|
entry: {
|
|
"ng2-alfresco-core": "./ng2-alfresco-core/index.ts",
|
|
"ng2-alfresco-datatable": "./ng2-alfresco-datatable/index.ts",
|
|
"ng2-activiti-diagrams": "./ng2-activiti-diagrams/index.ts",
|
|
"ng2-activiti-analytics": "./ng2-activiti-analytics/index.ts",
|
|
"ng2-activiti-form": "./ng2-activiti-form/index.ts",
|
|
"ng2-activiti-tasklist": "./ng2-activiti-tasklist/index.ts",
|
|
"ng2-activiti-processlist": "./ng2-activiti-processlist/index.ts",
|
|
"ng2-alfresco-documentlist": "./ng2-alfresco-documentlist/index.ts",
|
|
"ng2-alfresco-login": "./ng2-alfresco-login/index.ts",
|
|
"ng2-alfresco-search": "./ng2-alfresco-search/index.ts",
|
|
"ng2-alfresco-social": "./ng2-alfresco-social/index.ts",
|
|
"ng2-alfresco-tag": "./ng2-alfresco-tag/index.ts",
|
|
"ng2-alfresco-upload": "./ng2-alfresco-upload/index.ts",
|
|
"ng2-alfresco-viewer": "./ng2-alfresco-viewer/index.ts",
|
|
"ng2-alfresco-webscript": "./ng2-alfresco-webscript/index.ts",
|
|
"ng2-alfresco-userinfo": "./ng2-alfresco-userinfo/index.ts"
|
|
},
|
|
|
|
plugins: [
|
|
|
|
//new webpack.optimize.UglifyJsPlugin({
|
|
// mangle: {
|
|
// keep_fnames: true
|
|
// },
|
|
// compress: {
|
|
// warnings: false
|
|
// },
|
|
// output: {
|
|
// comments: false
|
|
// },
|
|
// sourceMap: true
|
|
//})
|
|
|
|
]
|
|
});
|