I have this Gulp snippet:
gulp.src(['./assets/**/*.!(coffee|scss)', '!assets/images{,/**}'])
.pipe(gulp.dest('.tmp/public'))
And this folder structure:
The intention is to copy everything except:
However, this glob pattern does not exclude A.B and A.B.C.coffee.
What is the correct pattern to do this?
You are close. Try this
gulp.src(['./assets/**/!(*.coffee|*.scss)', '!assets/images'])
.pipe(gulp.dest('.tmp/public'))