mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-07-09 09:51:59 +02:00
added --verbose flag for grunt dev
This commit is contained in:
11
Gruntfile.js
11
Gruntfile.js
@@ -8,10 +8,14 @@ var fork = require('child_process').fork,
|
||||
|
||||
module.exports = function(grunt) {
|
||||
function update(action, filepath, target) {
|
||||
var args = ['--log-level=info'],
|
||||
var args = [],
|
||||
fromFile = '',
|
||||
compiling = '',
|
||||
time = Date.now();
|
||||
|
||||
if (grunt.option('verbose')) {
|
||||
args.push('--log-level=info');
|
||||
}
|
||||
|
||||
if (target === 'lessUpdated') {
|
||||
fromFile = ['js','tpl'];
|
||||
@@ -39,7 +43,10 @@ module.exports = function(grunt) {
|
||||
worker.on('message', function() {
|
||||
if (incomplete.length) {
|
||||
incomplete = [];
|
||||
grunt.log.writeln('NodeBB restarted in ' + (Date.now() - time) + ' ms');
|
||||
|
||||
if (grunt.option('verbose')) {
|
||||
grunt.log.writeln('NodeBB restarted in ' + (Date.now() - time) + ' ms');
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user