Skip to content

Commit d162652

Browse files
authored
Merge pull request #22 from dmurvihill/gulp-4
Update to Gulp 4
2 parents 8fe31b9 + 2accb8a commit d162652

File tree

3 files changed

+5286
-3433
lines changed

3 files changed

+5286
-3433
lines changed

gulpfile.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ gulp.task('cover', function () {
5656
.pipe(plugins.istanbul.hookRequire());
5757
});
5858

59-
gulp.task('test', ['cover'], function () {
59+
gulp.task('test', gulp.series('cover', function () {
6060
return gulp.src('test/unit/*.js')
6161
.pipe(plugins.mocha({
6262
grep: argv.grep
6363
}))
6464
.pipe(plugins.istanbul.writeReports());
65-
});
65+
}));
6666

6767
gulp.task('karma', function (cb) {
6868
new Server({
@@ -92,7 +92,7 @@ gulp.task('karma', function (cb) {
9292
}, cb).start();
9393
});
9494

95-
gulp.task('smoke', ['bundle-smoke'], function (cb) {
95+
gulp.task('smoke', gulp.series('bundle-smoke', function (cb) {
9696
new Server({
9797
frameworks: ['mocha', 'chai'],
9898
browsers: ['PhantomJS'],
@@ -111,7 +111,7 @@ gulp.task('smoke', ['bundle-smoke'], function (cb) {
111111
autoWatch: false,
112112
singleRun: true
113113
}, cb).start();
114-
});
114+
}));
115115

116116
gulp.task('lint', function () {
117117
return gulp.src(['./gulpfile.js', './src/**/*.js', './test/**/*.js'])
@@ -129,7 +129,7 @@ gulp.task('bump', function () {
129129
.pipe(gulp.dest('./'));
130130
});
131131

132-
gulp.task('release', ['bundle', 'bump'], function () {
132+
gulp.task('release', gulp.series('bundle', 'bump', function () {
133133
var versionString = 'v' + version();
134134
var message = 'Release ' + versionString;
135135
return plugins.shell.task([
@@ -140,4 +140,4 @@ gulp.task('release', ['bundle', 'bump'], function () {
140140
'git push',
141141
'git push --tags'
142142
])();
143-
});
143+
}));

0 commit comments

Comments
 (0)