2019-01-29 04:34:20 +08:00
|
|
|
module.exports = function(config, grunt) {
|
2017-10-23 15:06:08 +08:00
|
|
|
'use strict';
|
2017-10-22 13:03:26 +08:00
|
|
|
|
2017-10-02 02:02:25 +08:00
|
|
|
return {
|
2018-12-21 21:23:32 +08:00
|
|
|
tslintPackages: {
|
|
|
|
command: 'yarn workspaces run tslint',
|
|
|
|
src: ['packages/**/*.ts*'],
|
|
|
|
},
|
|
|
|
tslintRoot: {
|
|
|
|
command: 'yarn run tslint',
|
2018-10-30 17:25:53 +08:00
|
|
|
src: ['public/app/**/*.ts*'],
|
|
|
|
},
|
2018-12-21 21:23:32 +08:00
|
|
|
typecheckPackages: {
|
|
|
|
command: 'yarn workspaces run typecheck',
|
|
|
|
src: ['packages/**/*.ts*'],
|
|
|
|
},
|
|
|
|
typecheckRoot: {
|
|
|
|
command: 'yarn run typecheck',
|
2018-10-30 17:25:53 +08:00
|
|
|
src: ['public/app/**/*.ts*'],
|
|
|
|
},
|
2019-12-13 21:56:25 +08:00
|
|
|
jest: 'yarn run jest-ci',
|
2019-01-29 04:34:20 +08:00
|
|
|
webpack:
|
2019-01-29 19:33:58 +08:00
|
|
|
'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js',
|
2017-10-02 02:02:25 +08:00
|
|
|
};
|
|
|
|
};
|