We are using gulp, which used node-glob to get the following pattern:
'App/public/{js,css}/**/*.{js,css}'
Unfortunately one of the desired paths is:
'App/public/js/Placeholder.js/dist/placeholder.js'
but the glob pattern returns simply:
'App/public/js/Placeholder.js'
resolving too soon. I could write a horrible complex function to handle this case, but it seems like this should be a solved thing. Google has yielded nothing useful so far. Please help keep this code clean.
You can use gulp-filter
to filter out directories pretty easily:
var filter = require('gulp-filter');
gulp.src('App/public/{js,css}/**/*.{js,css}')
.pipe(filter(function(file) {
return file.stat.isFile();
}))
.pipe(whatever());