diff --git a/app/templates/Gruntfile(grunt).js b/app/templates/Gruntfile(grunt).js index 87846d184..a775cce6c 100644 --- a/app/templates/Gruntfile(grunt).js +++ b/app/templates/Gruntfile(grunt).js @@ -161,7 +161,7 @@ module.exports = function (grunt) { }, src: ['<%%= yeoman.server %>/**/*.{spec,integration}.js'] }, - all: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock).js'], + all: ['<%%= yeoman.client %>/{app,components}/**/!(*.spec|*.mock|app.constant).js'], test: { src: ['<%%= yeoman.client %>/{app,components}/**/*.{spec,mock}.js'] } diff --git a/app/templates/gulpfile.babel(gulp).js b/app/templates/gulpfile.babel(gulp).js index 7f9fe93ee..902bed155 100644 --- a/app/templates/gulpfile.babel(gulp).js +++ b/app/templates/gulpfile.babel(gulp).js @@ -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()); });