Skip to content

Commit

Permalink
fix(gulp): exclude constant file from lint:scripts:client
Browse files Browse the repository at this point in the history
closes #1587
  • Loading branch information
Awk34 committed Jan 28, 2016
1 parent f4e590f commit 103db11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/templates/gulpfile.babel(gulp).js
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,11 @@ gulp.task('transpile:server', () => {
gulp.task('lint:scripts', cb => runSequence(['lint:scripts:client', 'lint:scripts:server'], cb));

gulp.task('lint:scripts:client', () => {
return gulp.src(_.union(paths.client.scripts, _.map(paths.client.test, blob => '!' + blob)))
return gulp.src(_.union(
paths.client.scripts,
_.map(paths.client.test, blob => '!' + blob),
[`!${clientPath}/app/app.constant.<%= scriptExt %>`]
))
.pipe(lintClientScripts());
});

Expand Down

0 comments on commit 103db11

Please sign in to comment.