Skip to content

Commit 0ed6119

Browse files
author
Contra
committed
-v when no gulp file. closes gulpjs#60
1 parent 30e401f commit 0ed6119

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

bin/gulp.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,6 @@ loadRequires(argv.require, localBaseDir);
1818

1919
var gulpFile = getGulpFile(localBaseDir);
2020

21-
if (!gulpFile) {
22-
gutil.log(gutil.colors.red('No Gulpfile found'));
23-
process.exit(1);
24-
}
25-
2621
// find the local gulp
2722
var localGulp = findLocalGulp(gulpFile);
2823
var localPkg = findLocalGulpPackage(gulpFile);
@@ -42,6 +37,11 @@ if (!localGulp) {
4237
process.exit(1);
4338
}
4439

40+
if (!gulpFile) {
41+
gutil.log(gutil.colors.red('No Gulpfile found'));
42+
process.exit(1);
43+
}
44+
4545
// Wire up logging for tasks
4646
// on local gulp singleton
4747
logEvents(localGulp);
@@ -125,6 +125,7 @@ function logEvents(gulp) {
125125
gulp.on('task_start', function(e){
126126
gutil.log('Running', "'"+gutil.colors.cyan(e.task)+"'...");
127127
});
128+
128129
gulp.on('task_stop', function(e){
129130
var time = prettyTime(e.hrDuration);
130131
gutil.log('Finished', "'"+gutil.colors.cyan(e.task)+"'", "in", gutil.colors.magenta(time));

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "gulp",
33
"description": "The streaming build system",
4-
"version": "3.1.5",
4+
"version": "3.1.6",
55
"homepage": "http://github.com/wearefractal/gulp",
66
"repository": "git://github.com/wearefractal/gulp.git",
77
"author": "Fractal <contact@wearefractal.com> (http://wearefractal.com/)",

0 commit comments

Comments
 (0)