Skip to content

Commit

Permalink
Merge pull request #1 from jonkemp/update-gulp-version
Browse files Browse the repository at this point in the history
Update to gulp 4.0.
  • Loading branch information
jonkemp committed Oct 28, 2018
2 parents a55b457 + f53e8bf commit 2d6ddc0
Show file tree
Hide file tree
Showing 3 changed files with 2,004 additions and 798 deletions.
17 changes: 8 additions & 9 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
'use strict';
var gulp = require('gulp'),
eslint = require('gulp-eslint'),
mocha = require('gulp-mocha');
mocha = require('gulp-mocha'),
paths = {
scripts: [ './*.js', '!./gulpfile.js' ]
};

var paths = {
scripts: ['./*.js', '!./gulpfile.js']
};

gulp.task('lint', function() {
gulp.task('lint', function () {
return gulp.src(paths.scripts)
.pipe(eslint())
.pipe(eslint.format());
});

gulp.task('test', function() {
gulp.task('test', function () {
return gulp.src('./test.js')
.pipe(mocha());
});

gulp.task('watch', function () {
gulp.watch(paths.scripts, ['lint', 'test']);
gulp.watch(paths.scripts, gulp.parallel('lint', 'test'));
});

gulp.task('default', ['lint', 'test', 'watch']);
gulp.task('default', gulp.parallel('lint', 'test', 'watch'));

0 comments on commit 2d6ddc0

Please sign in to comment.