Add 'Gulpfile.js' as valid gulpfile name

Fixes #103794
This commit is contained in:
Alex Ross 2020-08-03 11:15:10 +02:00
parent 8c1a543329
commit fe35d8c97a

View file

@ -148,9 +148,12 @@ class FolderDetector {
}
let gulpfile = path.join(rootPath, 'gulpfile.js');
if (!await exists(gulpfile)) {
gulpfile = path.join(rootPath, 'gulpfile.babel.js');
if (! await exists(gulpfile)) {
return emptyTasks;
gulpfile = path.join(rootPath, 'Gulpfile.js');
if (!await exists(gulpfile)) {
gulpfile = path.join(rootPath, 'gulpfile.babel.js');
if (!await exists(gulpfile)) {
return emptyTasks;
}
}
}