Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit b1ed8b2

Browse files
author
roman.vasilev
committed
chore: Updated dependencies
BREAKING CHANGE: Node 6+ is required now
1 parent 69c494a commit b1ed8b2

File tree

2 files changed

+28
-27
lines changed

2 files changed

+28
-27
lines changed

gulpfile.js

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,38 @@
1-
var gulp = require("gulp");
2-
var connect = require("gulp-connect");
3-
var mocha = require("gulp-mocha");
4-
var eslint = require("gulp-eslint");
1+
var gulp = require('gulp');
2+
var connect = require('gulp-connect');
3+
var mocha = require('gulp-mocha');
4+
var eslint = require('gulp-eslint');
55

6-
var files = ["index.js", "gulpfile.js"];
6+
var files = ['index.js', 'gulpfile.js'];
77

8-
gulp.task("lint", function() {
8+
gulp.task('lint', function() {
99
return gulp.src(files)
1010
.pipe(eslint())
1111
.pipe(eslint.format());
1212
// .pipe(eslint.failAfterError());
1313
});
1414

15-
gulp.task("test", function() {
16-
gulp.start("start-server");
17-
return gulp.src("test/*.js", {read: false})
15+
gulp.task('test', function() {
16+
var startServer = gulp.task('start-server');
17+
startServer();
18+
return gulp.src('test/*.js', {read: false})
1819
.pipe(mocha({timeout: 5000}))
19-
.on("end", connect.serverClose);
20+
.on('end', connect.serverClose);
2021
});
2122

22-
gulp.task("default", ["lint", "test"]);
23+
gulp.task('default', gulp.series(['lint', 'test']));
2324

24-
gulp.task("watch", function() {
25-
gulp.watch(files, ["lint", "test"]);
25+
gulp.task('watch', function() {
26+
gulp.watch(files, ['lint', 'test']);
2627
});
2728

28-
gulp.task("start-server", function() {
29+
gulp.task('start-server', function() {
2930
connect.server({
30-
root: "./test",
31+
root: './test',
3132
port: 1234
3233
});
3334
});
3435

35-
gulp.task("close-server", function() {
36+
gulp.task('close-server', function() {
3637
connect.serverClose();
3738
});

package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"http-https": "^1.0.0",
18-
"is-url": "^1.2.2",
18+
"is-url": "^1.2.4",
1919
"lodash.assign": "^4.2.0",
2020
"lodash.trim": "^4.5.1",
2121
"resolve-relative-url": "^1.0.0"
@@ -24,15 +24,15 @@
2424
"postcss": ">=6 <8"
2525
},
2626
"devDependencies": {
27-
"chai": "^4.1.2",
28-
"gulp": "^3.9.1",
29-
"@semantic-release/changelog": "^3.0.1",
30-
"@semantic-release/git": "^7.0.5",
31-
"@semantic-release/npm": "^5.1.2",
32-
"semantic-release": "^15.13.1",
33-
"gulp-connect": "^5.0.0",
34-
"gulp-eslint": "^4.0.0",
35-
"gulp-mocha": "^5.0.0",
27+
"chai": "^4.2.0",
28+
"gulp": "^4.0.0",
29+
"@semantic-release/changelog": "^3.0.2",
30+
"@semantic-release/git": "^7.0.7",
31+
"@semantic-release/npm": "^5.1.3",
32+
"semantic-release": "^15.13.2",
33+
"gulp-connect": "^5.7.0",
34+
"gulp-eslint": "^5.0.0",
35+
"gulp-mocha": "^6.0.0",
3636
"tcp-ping": "^0.1.1"
3737
},
3838
"scripts": {
@@ -79,4 +79,4 @@
7979
"path": "cz-conventional-changelog"
8080
}
8181
}
82-
}
82+
}

0 commit comments

Comments
 (0)