I want to exclude files that have either ".fixtures.js", ".mocks.js", or ".tests.js" with gulp. For example I have:
client/js/app.js
client/js/modules/services/myservice.js
client/js/modules/services/tests/myservice.tests.js
client/js/modules/directives/mydirective.js
client/js/modules/services/tests/mydirective.tests.js
client/js/modules/tests/global.mocks.js
client/js/modules/tests/global.fixtures.js
How can I exclude these all without manually doing:
gulp.src([
'client/js/**/*.js',
'!client/js/**/*.tests.js',
'!client/js/**/*.fixtures.js',
'!client/js/**/*.mocks.js',
])
.pipe(doSomething())