Skip to content

Commit a1e14db

Browse files
committed
Merge pull request NativeScript#1470 from NativeScript/cankov/time-grunt
Enable build times profiling
2 parents 27182eb + d02834a commit a1e14db

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

gruntfile.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ var tsconfig = require('./tsconfig.json');
22
var shelljs = require("shelljs");
33

44
module.exports = function(grunt) {
5+
if (grunt.option('profile')) {
6+
grunt.log.writeln('Profiling all grunt tasks...');
7+
require('time-grunt')(grunt);
8+
}
59

610
if (grunt.cli.tasks.indexOf("testsapp") >= 0 || grunt.cli.tasks.indexOf("buildTestsApp")>= 0) {
711
var tsTester = require("./build/run-testsapp.grunt.js");

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"mocha": "2.2.5",
3232
"shelljs": "0.5.3",
3333
"grunt-tslint": "3.0.0",
34+
"time-grunt": "^1.3.0",
3435
"tslint": "3.1.1",
3536
"typescript": "1.7.3"
3637
},

0 commit comments

Comments
 (0)