How to exclude a folder gulp template?

can't exclude folders when processing gulp'om
how?
this option does not work
gulp.src(['!../folder/*.EN/js/*.js', '!../folder/*.com/js/*.js', '../folder/**/js/*.js'])


to exclude the processing of folder end .EN and the end .com
June 5th 19 at 21:40
3 answers
June 5th 19 at 21:42
Solution
In order to exclude a folder pattern, you need to specify internally a continuation, as is done for normal folders.

'!folder/*.EN/**/test.js',
'!folder/*.com/**/test.js',
June 5th 19 at 21:44
You may want to put an exception in the end
gulp.src([
'../folder/**/js/*.js',
'!../folder/*.EN/js/*.js', 
'!../folder/*.com/js/*.js'
])
regardless of location, is not working - hermina_Doy commented on June 5th 19 at 21:47
You may need / at the beginning - Yvette_Sau commented on June 5th 19 at 21:50
also does not work, try these options
'!landing/*.ru/',
'!landing/*.com/',

'!landing/*.EN',
'!landing/*.com',

'!landing/*[^EN]',
'!landing/*[^com]',

'!landing/*[^EN]/',
'!landing/*[^com]/',

'landing/!(EN)',
'landing/!(com)',
'landing/!(ru)/',
 'landing/!(com)/',
- hermina_Doy commented on June 5th 19 at 21:53
June 5th 19 at 21:46
Exceptions it is recommended to put at the beginning.
Specify a path exception to the nesting level of the file Gulp.
That is, if you have, for example, lies at the root gulpfile, and the next project in the app directory, write:
'!app/js/*.js'
it does not solve the issue - hermina_Doy commented on June 5th 19 at 21:49

Find more questions by tags JavaScriptGulp.js