[ADF-799] add HappyPack to webpack conf (#1956)

This commit is contained in:
Eugenio Romano
2017-06-12 22:23:17 +01:00
committed by Eugenio Romano
parent 038a06d055
commit ccfb63b536
73 changed files with 423 additions and 58 deletions

2
.gitignore vendored
View File

@@ -14,3 +14,5 @@ src/environments/
/ng2-components/config/coverage/
*.npmrc
/demo-shell-ng2/ng2-components/
.happypack/
.happypack/

View File

@@ -5,24 +5,6 @@ const ExtractTextPlugin = require("extract-text-webpack-plugin");
const helpers = require('./helpers');
const path = require('path');
const alfrescoLibs = [
'ng2-activiti-analytics',
'ng2-activiti-diagrams',
'ng2-activiti-form',
'ng2-activiti-processlist',
'ng2-activiti-tasklist',
'ng2-alfresco-core',
'ng2-alfresco-datatable',
'ng2-alfresco-documentlist',
'ng2-alfresco-login',
'ng2-alfresco-search',
'ng2-alfresco-tag',
'ng2-alfresco-upload',
'ng2-alfresco-userinfo',
'ng2-alfresco-viewer',
'ng2-alfresco-webscript'
];
module.exports = {
entry: {
'polyfills': './app/polyfills.ts',

View File

@@ -5,6 +5,7 @@ const commonConfig = require('./webpack.common.js');
const helpers = require('./helpers');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const alfrescoLibs = [
'ng2-activiti-analytics',
@@ -40,10 +41,9 @@ module.exports = webpackMerge(commonConfig, {
test: /\.ts$/,
include: [helpers.root('app'), helpers.root('../ng2-components')],
loader: [
'ts-loader',
'angular2-template-loader'
'happypack/loader?id=ts','angular2-template-loader'
],
exclude: [ /node_modules/, /public/, /resources/, /dist/]
exclude: [/node_modules/, /public/, /resources/, /dist/]
}
]
},
@@ -74,6 +74,17 @@ module.exports = webpackMerge(commonConfig, {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {happyPackMode: true}
}
]
}),
new webpack.NoEmitOnErrorsPlugin(),
new ExtractTextPlugin('[name].[hash].css'),
new webpack.LoaderOptionsPlugin({
@@ -88,7 +99,7 @@ module.exports = webpackMerge(commonConfig, {
from: '**/*',
to: `assets/${lib}/i18n/`
}
}),
})
])
]
});

View File

@@ -4,6 +4,7 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
const commonConfig = require('./webpack.common.js');
const helpers = require('./helpers');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -27,7 +28,7 @@ const alfrescoLibs = [
module.exports = webpackMerge(commonConfig, {
devtool: 'source-map',
devtool: 'eval',
output: {
path: helpers.root('dist'),
@@ -46,21 +47,33 @@ module.exports = webpackMerge(commonConfig, {
{
test: /\.ts$/,
include: [helpers.root('app'), helpers.root('../ng2-components')],
use: ['ts-loader?' + JSON.stringify({
"compilerOptions": {
"paths": {}
}
}), 'angular2-template-loader'],
exclude: [ /node_modules/, /public/, /resources/, /dist/]
use: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /public/, /resources/, /dist/]
}
]
},
plugins: [
new HappyPack({
id: 'ts',
threads: 4,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([
... alfrescoLibs.map(lib => {
return {
context: `node_modules/${lib}/bundles/assets/` ,
context: `node_modules/${lib}/bundles/assets/`,
from: '**/*',
to: `assets/`
}

View File

@@ -1,5 +1,6 @@
const webpack = require('webpack');
const helpers = require('./helpers');
const helpers= require('./helpers');
var HappyPack = require('happypack');
module.exports = {
@@ -14,7 +15,7 @@ module.exports = {
rules: [
{
test: /\.ts$/,
loaders: ['ts-loader', 'angular2-template-loader'],
loaders: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [ /public/, /resources/, /dist/]
},
{
@@ -36,6 +37,17 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 4,
loaders: [
{
path: 'ts-loader',
query: {happyPackMode: true}
}
]
}),
new webpack.ContextReplacementPlugin(
// The (\\|\/) piece accounts for path separators in *nix and Windows
/angular(\\|\/)core(\\|\/)(esm(\\|\/)src|src)(\\|\/)linker/,

View File

@@ -14,7 +14,7 @@
"clean-build": "rimraf 'app/{,**/}**.js' 'app/{,**/}**.js.map' 'app/{,**/}**.d.ts'",
"server-versions": "rimraf versions.json && npm list --depth=0 --json=true --prod=true > versions.json || exit 0",
"webpack-dev-server": "node --max_old_space_size=4096 node_modules/webpack-dev-server/bin/webpack-dev-server.js",
"webpack": "node node_modules/webpack/bin/webpack.js",
"webpack": "node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js",
"aws": "node app.js"
},
"repository": {
@@ -109,6 +109,7 @@
"css-loader": "0.26.1",
"extract-text-webpack-plugin": "^2.0.0-rc.3",
"file-loader": "^0.10.0",
"happypack": "3.0.0",
"html-loader": "^0.4.4",
"html-webpack-plugin": "^2.28.0",
"jasmine-core": "^2.5.2",

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const alfrescoLibs = [
'ng2-activiti-analytics',
@@ -85,7 +86,7 @@ module.exports = {
},
{
test: /\.ts$/,
loader: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -95,7 +96,7 @@ module.exports = {
},
{
test: /\.css$/,
loader: ['to-string-loader', 'css-loader'],
loader: ['happypack/loader?id=css'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -131,6 +132,28 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new HappyPack({
id: 'css',
threads: 8,
loaders: ['to-string-loader', 'css-loader' ]
}),
new CopyWebpackPlugin([
... alfrescoLibs.map(lib => {
return {

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -45,7 +46,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -92,6 +93,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -75,6 +75,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -66,6 +66,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -73,6 +73,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -47,7 +48,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -94,6 +95,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -76,6 +76,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -39,7 +40,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -86,6 +87,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -79,6 +79,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -41,7 +42,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -88,6 +89,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -84,6 +84,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -71,6 +71,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -45,7 +46,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -92,6 +93,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -80,6 +80,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -82,6 +82,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -46,7 +47,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -93,6 +94,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -81,6 +81,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -59,6 +59,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map.gitignore
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -59,6 +59,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map.gitignore
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -80,6 +80,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map.gitignore
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -59,6 +59,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map.gitignore
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -17,5 +17,6 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack
*.tgz

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -44,7 +45,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -91,6 +92,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -75,6 +75,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -17,3 +17,4 @@ index.js.map.gitignore
/package/
/bundles/
index.d.ts
/.happypack

View File

@@ -15,3 +15,4 @@ fonts/
/karma.conf.js
/gulpfile.ts
/.npmignore
/.happypack

View File

@@ -3,6 +3,7 @@ const helpers = require('./helpers');
const fs = require('fs');
const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
var HappyPack = require('happypack');
const ENV = process.env.NODE_ENV = process.env.ENV = 'production';
@@ -45,7 +46,7 @@ module.exports = {
},
{
test: /\.ts$/,
use: ['ts-loader', 'angular2-template-loader'],
loader: ['happypack/loader?id=ts', 'angular2-template-loader'],
exclude: [/node_modules/, /bundles/, /dist/, /demo/]
},
{
@@ -92,6 +93,22 @@ module.exports = {
},
plugins: [
new HappyPack({
id: 'ts',
threads: 8,
loaders: [
{
path: 'ts-loader',
query: {
happyPackMode: true,
"compilerOptions": {
"paths": {}
}
}
}
]
}),
new CopyWebpackPlugin([{
from: `src/i18n/`,
to: `bundles/assets/${path.basename(helpers.root(''))}/i18n/`

View File

@@ -60,6 +60,7 @@
"istanbul-instrumenter-loader": "0.2.0",
"jasmine-ajax": "^3.2.0",
"jasmine-core": "2.4.1",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -52,6 +52,7 @@
"copy-webpack-plugin": "^4.0.1",
"extract-text-webpack-plugin": "^2.0.0-rc.3",
"html-webpack-plugin": "^2.28.0",
"happypack": "3.0.0",
"karma": "^0.13.22",
"karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.1.1",

View File

@@ -6,15 +6,14 @@
"scripts": {
"clean": "rimraf node_modules",
"rimraf": "rimraf",
"build": "npm run webpack -- --config config/webpack.build.js --progress --profile --bail",
"test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run",
"build": "webpack --config config/webpack.build.js --progress --profile --bail",
"test": "node node_modules/karma/bin/karma start --reporters mocha,coverage --single-run --component .",
"test-browser": "node node_modules/karma/bin/karma start karma.conf.js --reporters kjhtml",
"coverage": "",
"prepublish": "",
"pkg-build": "package-json-merge ng2-alfresco-core/package.json ng2-alfresco-datatable/package.json ng2-activiti-diagrams/package.json ng2-activiti-analytics/package.json ng2-activiti-form/package.json ng2-activiti-tasklist/package.json ng2-activiti-processlist/package.json ng2-alfresco-documentlist/package.json ng2-alfresco-login/package.json ng2-alfresco-search/package.json ng2-alfresco-tag/package.json ng2-alfresco-upload/package.json ng2-alfresco-viewer/package.json ng2-alfresco-webscript/package.json ng2-alfresco-webscript/package.json ng2-alfresco-userinfo/package.json ng2-alfresco-social/package.json package-base.json > package.json",
"tslint": "",
"tsc": "",
"webpack": "node --max_old_space_size=2048 node_modules/webpack/bin/webpack.js",
"pretest": "",
"posttest": "",
"publish:prod": ""
@@ -145,7 +144,8 @@
"wsrv": "^0.1.7",
"node-sass": "^3.13.1",
"sass-loader": "6.0.2",
"license-check": "1.1.5"
"license-check": "1.1.5",
"happypack": "3.0.0"
},
"license": "Apache-2.0",
"module": "./index.js",