Merge pull request #1470 from NativeScript/cankov/time-grunt

Enable build times profiling
This commit is contained in:
Panayot Cankov
2016-02-04 12:35:19 +02:00
2 changed files with 5 additions and 0 deletions

View File

@ -2,6 +2,10 @@ var tsconfig = require('./tsconfig.json');
var shelljs = require("shelljs");
module.exports = function(grunt) {
if (grunt.option('profile')) {
grunt.log.writeln('Profiling all grunt tasks...');
require('time-grunt')(grunt);
}
if (grunt.cli.tasks.indexOf("testsapp") >= 0 || grunt.cli.tasks.indexOf("buildTestsApp")>= 0) {
var tsTester = require("./build/run-testsapp.grunt.js");

View File

@ -31,6 +31,7 @@
"mocha": "2.2.5",
"shelljs": "0.5.3",
"grunt-tslint": "3.0.0",
"time-grunt": "^1.3.0",
"tslint": "3.1.1",
"typescript": "1.7.3"
},