Begin conversion to typescript.
This commit is contained in:
@ -7,6 +7,10 @@ module.exports = {
|
||||
context: path.resolve(__dirname, 'src'),
|
||||
entry: './app.js',
|
||||
devtool: 'source-map',
|
||||
resolve: {
|
||||
// Add '.ts' and '.tsx' as a resolvable extension.
|
||||
extensions: ['.webpack.js', '.web.js', '.ts', '.tsx', '.js', '.html']
|
||||
},
|
||||
module: {
|
||||
rules: [{
|
||||
enforce: 'pre',
|
||||
@ -24,6 +28,31 @@ module.exports = {
|
||||
indent: ['error', 4]
|
||||
},
|
||||
},
|
||||
}, {
|
||||
// typescript linting
|
||||
enforce: 'pre',
|
||||
test: /\.tsx?$/,
|
||||
exclude: /(node_modules|bootstrap)/,
|
||||
loader: 'tslint-loader',
|
||||
options: {
|
||||
configFile: false,
|
||||
emitErrors: true,
|
||||
baseConfig: 'angular',
|
||||
allowJs: true,
|
||||
configuration: {
|
||||
extends: ["angular-tslint-rules"],
|
||||
include: [
|
||||
'src/**/*'
|
||||
],
|
||||
rules: {
|
||||
indent: ['error', 4]
|
||||
},
|
||||
},
|
||||
},
|
||||
}, {
|
||||
test: /\.tsx?$/,
|
||||
exclude: /node_modules/,
|
||||
loader: 'ts-loader'
|
||||
}, {
|
||||
// Javascript
|
||||
enforce: 'pre',
|
||||
|
Reference in New Issue
Block a user