mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 19:26:42 +08:00
Merge pull request #1470 from NativeScript/cankov/time-grunt
Enable build times profiling
This commit is contained in:
@ -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");
|
||||
|
@ -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"
|
||||
},
|
||||
|
Reference in New Issue
Block a user