toolkit: expose maxWorkers option for plugin build & test tasks (#27724)

This commit is contained in:
Domas
2020-10-01 11:50:56 +03:00
committed by GitHub
parent 22b2d4d412
commit bd9add72de
6 changed files with 36 additions and 19 deletions

View File

@ -87,21 +87,21 @@ module.exports = (env = {}) =>
env.noTsCheck
? new webpack.DefinePlugin({}) // bogus plugin to satisfy webpack API
: new ForkTsCheckerWebpackPlugin({
eslint: {
enabled: true,
files: ['public/app/**/*.{ts,tsx}', 'packages/*/src/**/*.{ts,tsx}'],
options: {
cache: true,
eslint: {
enabled: true,
files: ['public/app/**/*.{ts,tsx}', 'packages/*/src/**/*.{ts,tsx}'],
options: {
cache: true,
},
},
},
typescript: {
mode: 'write-references',
diagnosticOptions: {
semantic: true,
syntactic: true,
typescript: {
mode: 'write-references',
diagnosticOptions: {
semantic: true,
syntactic: true,
},
},
},
}),
}),
new MiniCssExtractPlugin({
filename: 'grafana.[name].[hash].css',
}),