Skip to content

Commit

Permalink
Using debug option to show full command. Merge from #34
Browse files Browse the repository at this point in the history
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Mar 26, 2014
1 parent b1a0190 commit 929b781
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/compass.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var spawn = require('child_process').spawn,
var PLUGIN_NAME = 'gulp-compass',
spawn = require('child_process').spawn,
gutil = require('gulp-util'),
path = require('path'),
which = require('which').sync,
Expand Down Expand Up @@ -103,6 +104,10 @@ module.exports = function(file, opts, callback) {
}
}

if (opts.debug) {
gutil.log(PLUGIN_NAME + ':', 'Running command:', compassExecutable, options.join(' '));
}

var child = spawn(compassExecutable, options, {cwd: opts.project || process.cwd()}),
stdout = '',
stderr = '';
Expand Down

0 comments on commit 929b781

Please sign in to comment.