Skip to content

Commit 2635933

Browse files
author
hkamran
committed
upgrading gulp to 4.x
1 parent cecad64 commit 2635933

File tree

2 files changed

+9
-14
lines changed

2 files changed

+9
-14
lines changed

gulpfile.js

+2-12
Original file line numberDiff line numberDiff line change
@@ -39,20 +39,10 @@ gulp.task('compile', function (callback) {
3939
});
4040
});
4141

42-
gulp.task('build', function (callback) {
43-
runSequence(
44-
'compile',
45-
'assets',
46-
callback);
47-
});
42+
gulp.task('build', gulp.series('compile', 'assets'));
4843

4944
gulp.task('watch', function () {
5045
gulp.watch([dir.src, dir.assets], ['build']);
5146
});
5247

53-
gulp.task('default', function (callback) {
54-
runSequence('clean',
55-
'build',
56-
'assets',
57-
callback);
58-
});
48+
gulp.task('default', gulp.series('clean', 'build', 'assets'));

package.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"start": "http-server ./target -o",
77
"build": "gulp build",
8-
"watch": "gulp watch"
8+
"watch": "gulp watch",
9+
"netplay": "npm explore peer -- peerjs --port 9000"
910
},
1011
"author": "",
1112
"license": "ISC",
@@ -26,14 +27,15 @@
2627
"fancy-log": "^1.3.2",
2728
"file-loader": "^2.0.0",
2829
"flux": "^3.1.3",
29-
"gulp": "^3.9.1",
30+
"gulp": "^4.0.2",
3031
"gulp-mocha": "^6.0.0",
3132
"gulp-typescript": "^5.0.0-alpha.3",
3233
"gulp-webpack-typescript-pipeline": "^12.0.0",
3334
"http-server": "^0.11.1",
3435
"jquery": "^3.3.1",
3536
"log-fancy": "^1.3.2",
3637
"lorem-ipsum": "^1.0.6",
38+
"peerjs": "^1.2.0",
3739
"raw-loader": "^0.5.1",
3840
"react": "^16.5.0",
3941
"react-bootstrap": "^0.32.4",
@@ -54,5 +56,8 @@
5456
"url-loader": "^1.1.1",
5557
"uuid": "^3.3.2",
5658
"webpack": "^4.19.0"
59+
},
60+
"devDependencies": {
61+
"peer": "^0.5.3"
5762
}
5863
}

0 commit comments

Comments
 (0)