Skip to content

Commit

Permalink
Update gulpfile and dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Constellation committed Dec 2, 2020
1 parent ab53cd5 commit 0b1a75b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 13 deletions.
13 changes: 7 additions & 6 deletions gulpfile.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*
Copyright (C) 2014 Yusuke Suzuki <utatane.tea@gmail.com>
Copyright (C) 2019-2020 Apple Inc. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down Expand Up @@ -64,20 +65,20 @@ var ESLINT_OPTION = {
}
};

gulp.task('test', function () {
gulp.task('test', gulp.series(function () {
return gulp.src(TEST)
.pipe(mocha({
reporter: 'spec',
timeout: 100000 // 100s
}));
});
}));

gulp.task('lint', function () {
gulp.task('lint', gulp.series(function () {
return gulp.src(LINT)
.pipe(eslint(ESLINT_OPTION))
.pipe(eslint.formatEach('stylish', process.stderr))
.pipe(eslint.failOnError());
});
}));

gulp.task('travis', [ 'lint', 'test' ]);
gulp.task('default', [ 'travis' ]);
gulp.task('travis', gulp.series([ 'lint', 'test' ]));
gulp.task('default', gulp.series([ 'travis' ]));
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,23 +32,24 @@
"dependencies": {
"estraverse": "^5.2.0",
"esutils": "^2.0.2",
"esprima": "^4.0.1",
"optionator": "^0.8.1"

This comment has been minimized.

Copy link
@realityking

realityking Mar 10, 2021

Contributor

Was removing optionator intentional? It still seems to be used, here

optionator = require('optionator')({

and here

optionator = require('optionator')({

"esprima": "^4.0.1"
},
"optionalDependencies": {
"source-map": "~0.6.1"
},
"devDependencies": {
"acorn": "^7.3.1",
"acorn": "^8.0.4",
"bluebird": "^3.4.7",
"bower-registry-client": "^1.0.0",
"chai": "^4.2.0",
"chai-exclude": "^2.0.2",
"commonjs-everywhere": "^0.9.7",
"gulp": "^3.8.10",
"gulp-eslint": "^3.0.1",
"gulp-mocha": "^3.0.1",
"semver": "^5.1.0"
"gulp": "^4.0.2",
"gulp-eslint": "^6.0.0",
"gulp-mocha": "^7.0.2",
"minimist": "^1.2.5",
"optionator": "^0.9.1",
"semver": "^7.3.4"
},
"license": "BSD-2-Clause",
"scripts": {
Expand Down

0 comments on commit 0b1a75b

Please sign in to comment.