Skip to content

Commit

Permalink
clean up gulp tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemmarsh committed May 12, 2016
1 parent 29df528 commit e0a124e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion gulp/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ const config = {

scripts: {
src: './app/js/**/*.js',
dest: './build/js/'
dest: './build/js/',
test: './tests/**/*.js',
gulp: './gulp/**/*.js'
},

images: {
Expand Down
4 changes: 2 additions & 2 deletions gulp/tasks/lint.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import config from '../config';

gulp.task('lint', function() {

return gulp.src([config.scripts.src, config.testFiles, './*.js'])
return gulp.src([config.scripts.src, config.scripts.test, config.scripts.gulp])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());

});
});
2 changes: 1 addition & 1 deletion gulp/tasks/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ gulp.task('test', () => {
files = ['tests/helper.js', singleFile];
} else {
// Default to all test files
files = [config.testFiles];
files = [config.scripts.test];
}

// Ensure that all window/DOM related properties
Expand Down

0 comments on commit e0a124e

Please sign in to comment.