I have a gulp task like this:
const dest_free = "build/free";
gulp.task("build-free", ["clean-free"], function () {
gulp.src(["src/**", "!src/composer.*", "LICENSE", "src/plugins/index.php", "!src/plugins/**"])
.pipe(gulp.dest(dest_free));
});
My dir structure:
$ ls -F src/plugins/
RecipeIndex/ VisitorRating/ index.php
I'm expecting index.php
to be in build/free/plugins/
but it's not:
$ ls -F build/free/plugins/
$
My questions:
- How can I debug this issue, first of all? How would I get the result that the gulp glob is producing? Any article or material would be appreciated.
- Why isn't
index.php
showing up inbuild/free/plugins/
?
P.S.: Changing gulp glob order to this doesn't make a difference: ["src/**", "!src/composer.*", "LICENSE", "!src/plugins/**", "src/plugins/index.php"]
To expand on @Cassidy Laidlaw's commment you can try the following, or the other options from this previous post to debug:
This will output lines to the console like: