grafana/scripts/grunt/options/exec.js

15 lines
426 B
JavaScript
Raw Normal View History

module.exports = function(config, grunt) {
2017-10-23 02:06:08 -05:00
'use strict';
var coverage = '';
if (config.coverage) {
2017-10-22 12:22:06 -05:00
coverage = '--coverage --maxWorkers 2';
}
return {
2017-10-23 02:06:08 -05:00
tslint: 'node ./node_modules/tslint/lib/tslint-cli.js -c tslint.json --project ./tsconfig.json',
jest: 'node ./node_modules/jest-cli/bin/jest.js ' + coverage,
webpack: './node_modules/.bin/webpack --config scripts/webpack/webpack.prod.js',
};
};