coffee-lint ignore test files

stable
Juanfran 2015-04-21 14:27:26 +02:00
parent 0130301828
commit 582e9e83d7
1 changed files with 4 additions and 1 deletions

View File

@ -298,7 +298,10 @@ gulp.task("locales", function() {
});
gulp.task("coffee-lint", function () {
gulp.src(paths.app + "modules/**/*.coffee")
gulp.src([
paths.app + "modules/**/*.coffee",
"!" + paths.app + "modules/**/*.spec.coffee"
])
.pipe(gulpif(!isDeploy, cache(coffeelint(), {
key: function(lintFile) {
return "coffee-lint" + lintFile.contents.toString('utf8');