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");