mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
- using grunt-newer to prefix precommit tasks - only got it to work for tslint and tsc Not applied to: - sasslint does not take the file arguments in a way that grunt-newer recognizes - no-only-tests throws an error when used with `newer`, but it's sub-second runtime
17 lines
499 B
JavaScript
17 lines
499 B
JavaScript
module.exports = function (config, grunt) {
|
|
'use strict';
|
|
|
|
return {
|
|
tslint: {
|
|
command: 'node ./node_modules/tslint/lib/tslintCli.js -c tslint.json --project ./tsconfig.json',
|
|
src: ['public/app/**/*.ts*'],
|
|
},
|
|
tsc: {
|
|
command: 'yarn tsc --noEmit',
|
|
src: ['public/app/**/*.ts*'],
|
|
},
|
|
jest: 'node ./node_modules/jest-cli/bin/jest.js --maxWorkers 2',
|
|
webpack: 'node ./node_modules/webpack/bin/webpack.js --config scripts/webpack/webpack.prod.js',
|
|
};
|
|
};
|