grafana/scripts/grunt/options/exec.js

14 lines
354 B
JavaScript
Raw Normal View History

module.exports = function(config, grunt) {
'use strict'
var coverage = '';
if (config.coverage) {
2017-10-23 01:19:29 +08:00
coverage = '--coverage --runInBand --logHeapUsage';
}
return {
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,
};
};