Skip to content

Commit 093483a

Browse files
committed
chore(gulp): update to gulp 4
1 parent d654cd8 commit 093483a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

gulpfile.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,22 @@ var standard = require('gulp-standard')
1212

1313
var karmaConfig = path.join(__dirname, 'karma.conf.js')
1414

15-
gulp.task('clean', function () {
15+
gulp.task('clean', function clean () {
1616
var del = require('del')
1717
return del([
1818
'build'
1919
])
2020
})
2121

22-
gulp.task('complexity', function (done) {
22+
gulp.task('complexity', function complexity (done) {
2323
var callback = function () {
2424
done()
2525
}
2626

2727
plato.inspect(paths.lint, 'build/complexity', {title: 'prerender', recurse: true}, callback)
2828
})
2929

30-
gulp.task('lint', function () {
30+
gulp.task('lint', function lint () {
3131
return gulp
3232
.src(paths.lint)
3333
.pipe(standard())
@@ -37,8 +37,8 @@ gulp.task('lint', function () {
3737
}))
3838
})
3939

40-
gulp.task('tdd', function (done) {
41-
gulp.watch(paths.all, ['lint'])
40+
gulp.task('tdd', function tdd (done) {
41+
gulp.watch(paths.all, gulp.parallel('lint'))
4242

4343
var config = testConfig(
4444
{
@@ -53,7 +53,7 @@ gulp.task('tdd', function (done) {
5353
server.start()
5454
})
5555

56-
gulp.task('test', ['lint'], function (done) {
56+
gulp.task('test', gulp.series('lint', function test (done) {
5757
var config = testConfig(
5858
{
5959
configFile: karmaConfig,
@@ -64,9 +64,9 @@ gulp.task('test', ['lint'], function (done) {
6464

6565
var server = new Server(config, done)
6666
server.start()
67-
})
67+
}))
6868

69-
gulp.task('default', ['complexity', 'test'])
69+
gulp.task('default', gulp.parallel('complexity', 'test'))
7070

7171
var testConfig = function (options) {
7272
var travisDefaultOptions = {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"cz-conventional-changelog": "^1.2.0",
2525
"del": "^5.1.0",
2626
"eslint": "^3.8.1",
27-
"gulp": "^3.9.1",
27+
"gulp": "^4.0.0",
2828
"gulp-standard": "^8.0.4",
2929
"jasmine-core": "^2.5.2",
3030
"jquery": "^3.1.1",

0 commit comments

Comments
 (0)