mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
#1026 fix bundles
This commit is contained in:
@@ -1,22 +1,27 @@
|
||||
const moduleIdRegex = /moduleId: module.id,/g;
|
||||
const moduleNameRegex = /moduleId: __moduleName,/g;
|
||||
const moduleIdPath = /module.id.replace/g;
|
||||
|
||||
module.exports = function(source) {
|
||||
this.cacheable();
|
||||
|
||||
let result = source;
|
||||
|
||||
if (moduleIdRegex.test(source)) {
|
||||
result = source.replace(moduleIdRegex, (match) => {
|
||||
source = source.replace(moduleIdRegex, (match) => {
|
||||
return `// ${match}`;
|
||||
});
|
||||
}
|
||||
|
||||
if (moduleNameRegex.test(source)) {
|
||||
result = source.replace(moduleNameRegex, (match) => {
|
||||
source = source.replace(moduleNameRegex, (match) => {
|
||||
return `// ${match}`;
|
||||
});
|
||||
}
|
||||
|
||||
return result;
|
||||
if (moduleIdPath.test(source)) {
|
||||
source = source.replace(moduleIdPath, (match) => {
|
||||
return `''.replace`;
|
||||
});
|
||||
}
|
||||
|
||||
return source;
|
||||
}
|
||||
|
@@ -44,13 +44,21 @@ module.exports = {
|
||||
},
|
||||
fallback: rootPath
|
||||
},
|
||||
|
||||
module: {
|
||||
preLoaders: [
|
||||
{
|
||||
test: /\.js$/,
|
||||
include: [
|
||||
...alfrescoLibs
|
||||
],
|
||||
loader: 'source-map-loader'
|
||||
}
|
||||
],
|
||||
loaders: [
|
||||
{
|
||||
test: /\.ts$/,
|
||||
loaders: ['awesome-typescript-loader', 'angular2-template-loader'],
|
||||
exclude: /node_modules/
|
||||
loaders: ['awesome-typescript-loader', 'angular2-template-loader', 'systemjs-loader'],
|
||||
exclude: ['node_modules','public']
|
||||
},
|
||||
{
|
||||
test: /\.js$/,
|
||||
@@ -59,43 +67,43 @@ module.exports = {
|
||||
],
|
||||
loaders: ['angular2-template-loader', 'source-map-loader', 'systemjs-loader']
|
||||
},
|
||||
{
|
||||
{
|
||||
test: /\.html$/,
|
||||
exclude: alfrescoLibs,
|
||||
loader: 'html'
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
test: /\.html$/,
|
||||
include: alfrescoLibs,
|
||||
loader: 'html',
|
||||
query: {
|
||||
interpolate: true
|
||||
}
|
||||
},
|
||||
{
|
||||
}
|
||||
},
|
||||
{
|
||||
test: /\.(png|jpe?g|gif|svg|woff|woff2|ttf|eot|ico)$/,
|
||||
loader: 'file?name=assets/[name].[hash].[ext]'
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
exclude: [
|
||||
helpers.root('app'),
|
||||
...alfrescoLibs
|
||||
],
|
||||
],
|
||||
loader: ExtractTextPlugin.extract('style', 'css?sourceMap')
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
test: /\.css$/,
|
||||
include: [
|
||||
helpers.root('app'),
|
||||
...alfrescoLibs
|
||||
],
|
||||
],
|
||||
loader: 'raw'
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
plugins: [
|
||||
plugins: [
|
||||
|
||||
new webpack.ProvidePlugin({
|
||||
'dialogPolyfill': 'dialog-polyfill/dialog-polyfill'
|
||||
@@ -108,10 +116,10 @@ module.exports = {
|
||||
new HtmlWebpackPlugin({
|
||||
template: 'index.html'
|
||||
})
|
||||
],
|
||||
],
|
||||
|
||||
node: {
|
||||
fs: 'empty',
|
||||
module: false
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@@ -5,7 +5,8 @@ var helpers = require('./helpers');
|
||||
var CopyWebpackPlugin = require('copy-webpack-plugin');
|
||||
|
||||
module.exports = webpackMerge(commonConfig, {
|
||||
devtool: 'cheap-module-source-map',
|
||||
|
||||
devtool: 'cheap-module-eval-source-map',
|
||||
|
||||
output: {
|
||||
path: helpers.root('dist'),
|
||||
|
@@ -1,42 +0,0 @@
|
||||
'use strict';
|
||||
|
||||
// wsrv extension that provides dynamic '/versions' route
|
||||
|
||||
exports.register = function (server, options, next) {
|
||||
|
||||
var packages = [
|
||||
'ng2-activiti-form',
|
||||
'ng2-alfresco-core',
|
||||
'ng2-alfresco-datatable',
|
||||
'ng2-alfresco-documentlist',
|
||||
'ng2-alfresco-login',
|
||||
'ng2-alfresco-search',
|
||||
'ng2-alfresco-upload',
|
||||
'ng2-alfresco-viewer',
|
||||
'ng2-alfresco-webscript'
|
||||
];
|
||||
|
||||
server.route({
|
||||
method: 'GET',
|
||||
path: '/versions',
|
||||
handler: function (request, reply) {
|
||||
var result = {
|
||||
packages: packages.map(function (packageName) {
|
||||
return {
|
||||
name: packageName,
|
||||
version: require('./../node_modules/' + packageName + '/package.json').version
|
||||
}
|
||||
})
|
||||
};
|
||||
|
||||
return reply(result).type('application/json');
|
||||
}
|
||||
});
|
||||
|
||||
next();
|
||||
};
|
||||
|
||||
exports.register.attributes = {
|
||||
name: 'ng2-module-versions',
|
||||
version: '1.0.0'
|
||||
};
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-analytics.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"contributors": [
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-diagrams.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"contributors": [
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-form.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-processlist.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-activiti-tasklist.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-core.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-datatable.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-documentlist.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-login.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-search.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-tag.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-upload.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-userinfo.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -1,5 +1,6 @@
|
||||
npm-debug.log
|
||||
.idea
|
||||
demo/localTestFile.pdf
|
||||
|
||||
coverage/
|
||||
demo/
|
||||
@@ -7,18 +8,12 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
||||
*.tgz
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-viewer.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
@@ -7,18 +7,10 @@ node_modules
|
||||
typings/
|
||||
fonts/
|
||||
|
||||
|
||||
/.editorconfig
|
||||
/.travis.yml
|
||||
*.ts
|
||||
!*.d.ts
|
||||
!*.js
|
||||
!*.js.map
|
||||
/*.json
|
||||
*.spec.js
|
||||
*.tgz
|
||||
/.npmignore
|
||||
/karma-test-shim.js
|
||||
/karma.conf.js
|
||||
/make.js
|
||||
/package/
|
||||
/gulpfile.ts
|
||||
/.npmignore
|
||||
|
@@ -22,7 +22,7 @@
|
||||
"build.umd": "gulp build.prod --color --env-config prod --build-type prod",
|
||||
"reinstall": "npm cache clean && npm install"
|
||||
},
|
||||
"main": "bundles/ng2-alfresco-webscript.js",
|
||||
"main": "./index.js",
|
||||
"module": "./index.js",
|
||||
"typings": "./index.d.ts",
|
||||
"repository": {
|
||||
|
Reference in New Issue
Block a user