Skip to content

Commit 0b1a75b

Browse files
committed
Update gulpfile and dependencies
1 parent ab53cd5 commit 0b1a75b

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

gulpfile.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/*
22
Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com>
3+
Copyright (C) 2019-2020 Apple Inc. All rights reserved.
34
45
Redistribution and use in source and binary forms, with or without
56
modification, are permitted provided that the following conditions are met:
@@ -64,20 +65,20 @@ var ESLINT_OPTION = {
6465
}
6566
};
6667

67-
gulp.task('test', function () {
68+
gulp.task('test', gulp.series(function () {
6869
return gulp.src(TEST)
6970
.pipe(mocha({
7071
reporter: 'spec',
7172
timeout: 100000 // 100s
7273
}));
73-
});
74+
}));
7475

75-
gulp.task('lint', function () {
76+
gulp.task('lint', gulp.series(function () {
7677
return gulp.src(LINT)
7778
.pipe(eslint(ESLINT_OPTION))
7879
.pipe(eslint.formatEach('stylish', process.stderr))
7980
.pipe(eslint.failOnError());
80-
});
81+
}));
8182

82-
gulp.task('travis', [ 'lint', 'test' ]);
83-
gulp.task('default', [ 'travis' ]);
83+
gulp.task('travis', gulp.series([ 'lint', 'test' ]));
84+
gulp.task('default', gulp.series([ 'travis' ]));

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,24 @@
3232
"dependencies": {
3333
"estraverse": "^5.2.0",
3434
"esutils": "^2.0.2",
35-
"esprima": "^4.0.1",
36-
"optionator": "^0.8.1"
35+
"esprima": "^4.0.1"
3736
},
3837
"optionalDependencies": {
3938
"source-map": "~0.6.1"
4039
},
4140
"devDependencies": {
42-
"acorn": "^7.3.1",
41+
"acorn": "^8.0.4",
4342
"bluebird": "^3.4.7",
4443
"bower-registry-client": "^1.0.0",
4544
"chai": "^4.2.0",
4645
"chai-exclude": "^2.0.2",
4746
"commonjs-everywhere": "^0.9.7",
48-
"gulp": "^3.8.10",
49-
"gulp-eslint": "^3.0.1",
50-
"gulp-mocha": "^3.0.1",
51-
"semver": "^5.1.0"
47+
"gulp": "^4.0.2",
48+
"gulp-eslint": "^6.0.0",
49+
"gulp-mocha": "^7.0.2",
50+
"minimist": "^1.2.5",
51+
"optionator": "^0.9.1",
52+
"semver": "^7.3.4"
5253
},
5354
"license": "BSD-2-Clause",
5455
"scripts": {

0 commit comments

Comments
 (0)