|
@@ -4,6 +4,7 @@ const fs = require("fs");
|
|
const nodeExternals = require('webpack-node-externals');
|
|
const nodeExternals = require('webpack-node-externals');
|
|
const webpack = require('webpack');
|
|
const webpack = require('webpack');
|
|
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
|
|
const CheckerPlugin = require('awesome-typescript-loader').CheckerPlugin;
|
|
|
|
+const TSLintPlugin = require('tslint-webpack-plugin');
|
|
|
|
|
|
const copyright = 'Copyright (C) 2017 Timofey Kachalov <[email protected]>';
|
|
const copyright = 'Copyright (C) 2017 Timofey Kachalov <[email protected]>';
|
|
|
|
|
|
@@ -45,12 +46,6 @@ module.exports = {
|
|
module: {
|
|
module: {
|
|
exprContextCritical: false,
|
|
exprContextCritical: false,
|
|
rules: [
|
|
rules: [
|
|
- {
|
|
|
|
- enforce: 'pre',
|
|
|
|
- test: /\.ts(x?)$/,
|
|
|
|
- loader: 'tslint-loader',
|
|
|
|
- exclude: /(node_modules)/
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
test: /\.ts(x?)$/,
|
|
test: /\.ts(x?)$/,
|
|
loader: 'awesome-typescript-loader',
|
|
loader: 'awesome-typescript-loader',
|
|
@@ -72,7 +67,10 @@ module.exports = {
|
|
entryOnly: false
|
|
entryOnly: false
|
|
}
|
|
}
|
|
),
|
|
),
|
|
- new CheckerPlugin()
|
|
|
|
|
|
+ new CheckerPlugin(),
|
|
|
|
+ new TSLintPlugin({
|
|
|
|
+ files: ['./src/**/*.ts']
|
|
|
|
+ })
|
|
],
|
|
],
|
|
output: {
|
|
output: {
|
|
path: __dirname + '/dist',
|
|
path: __dirname + '/dist',
|