Search code examples
javascriptgulpweb-frontendbuild-system

Ignore/Exclude folder from jshint gulp.js


I am trying to exclude the vendor folder in gulp. I have read a few tutorials and howto's none of them are working i've tried this

js = {
    in: source + 'js/**/*', '!js/vendor/**/*.js'
    out: dest + 'js/',
    filename: 'main.js'
},

and something to the effect of

([in: source + 'js/**/*', '!js/vendor/**/*.js')

the second option completely ignores the js all together. Any help would be greatly appreciated thank you in advance.


Solution

  • Gulp is normal Javascript; you need to write a regular object with an in property that holds an array of two strings.