Skip to content

Commit

Permalink
correct regression
Browse files Browse the repository at this point in the history
  • Loading branch information
Contra committed May 18, 2014
1 parent 7d177cb commit 3198ec1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions bin/gulp.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,22 +68,23 @@ function handleArguments(env) {
gutil.log('Working directory changed to', chalk.magenta(tildify(env.cwd)));
}

var gulpFile = require(env.configPath);
gutil.log('Using gulpfile', chalk.magenta(tildify(env.configPath)));

var gulpInst = require(env.modulePath);
logEvents(gulpInst);

process.nextTick(function() {
if (tasksFlag) {
return logTasks(env.configPath, gulpInst);
return logTasks(env, gulpInst);
}
gulpInst.start.apply(gulpInst, toRun);
});
}

function logTasks(configPath, localGulp) {
function logTasks(env, localGulp) {
var tree = taskTree(localGulp.tasks);
tree.label = 'Tasks for ' + chalk.magenta(tildify(configPath));
tree.label = 'Tasks for ' + chalk.magenta(tildify(env.configPath));
archy(tree).split('\n').forEach(function(v) {
if (v.trim().length === 0) return;
gutil.log(v);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "gulp",
"description": "The streaming build system",
"version": "3.6.2",
"version": "3.6.3",
"homepage": "http://gulpjs.com",
"repository": "gulpjs/gulp",
"author": "Fractal <[email protected]> (http://wearefractal.com/)",
Expand Down

0 comments on commit 3198ec1

Please sign in to comment.