From 22e9ff380ce6acc7a6d9eb0e58314917a3fb2542 Mon Sep 17 00:00:00 2001 From: artnerdnet Date: Sun, 23 Sep 2018 11:42:16 +0200 Subject: [PATCH 1/3] deploy live demo to github pages --- demo/gulpfile.js | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/demo/gulpfile.js b/demo/gulpfile.js index e57b2f5..063a06a 100644 --- a/demo/gulpfile.js +++ b/demo/gulpfile.js @@ -19,3 +19,35 @@ gulp.task("build", () => ) gulp.watch("js/*.js", ["build"]) + +const gulp = require("gulp") +const connect = require("gulp-connect") +const bro = require("gulp-bro") +const runSequence = require("run-sequence") +const deploy = require('gh-pages'); + +gulp.task("default", function(callback) { + runSequence("build", "connect", callback) +}) + +gulp.task("connect", function() { + connect.server() +}) + +gulp.task("build", () => + gulp + .src("js/script.js") + .pipe(bro()) + .pipe(gulp.dest("js_dist")) +) + +gulp.watch("js/*.js", ["build"]) + +/** + * Push build to gh-pages + */ +gulp.task('deploy', function () { + return gulp + .src("./dist/**/*") + .pipe(deploy()) +}); From 00ecce329357503176d37d8b1cf7bc9523a5982f Mon Sep 17 00:00:00 2001 From: V <36138541+artnerdnet@users.noreply.github.com> Date: Sun, 23 Sep 2018 18:34:00 +0200 Subject: [PATCH 2/3] Update gulpfile.js Deleted duplicated code --- demo/gulpfile.js | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/demo/gulpfile.js b/demo/gulpfile.js index 063a06a..709996b 100644 --- a/demo/gulpfile.js +++ b/demo/gulpfile.js @@ -1,25 +1,3 @@ -const gulp = require("gulp") -const connect = require("gulp-connect") -const bro = require("gulp-bro") -const runSequence = require("run-sequence") - -gulp.task("default", function(callback) { - runSequence("build", "connect", callback) -}) - -gulp.task("connect", function() { - connect.server() -}) - -gulp.task("build", () => - gulp - .src("js/script.js") - .pipe(bro()) - .pipe(gulp.dest("js_dist")) -) - -gulp.watch("js/*.js", ["build"]) - const gulp = require("gulp") const connect = require("gulp-connect") const bro = require("gulp-bro") From f5a319fb38c15223a5c63e18d134883e4ddf1b59 Mon Sep 17 00:00:00 2001 From: V <36138541+artnerdnet@users.noreply.github.com> Date: Sat, 13 Oct 2018 11:43:11 +0200 Subject: [PATCH 3/3] Update package.json Updated gulp connect version --- demo/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/package.json b/demo/package.json index 871ccb3..8f607ac 100644 --- a/demo/package.json +++ b/demo/package.json @@ -12,7 +12,7 @@ "devDependencies": { "gulp": "^3.9.1", "gulp-bro": "^1.0.3", - "gulp-connect": "^5.5.0", + "gulp-connect": "^5.6.1", "gulp-sequence": "^1.0.0", "run-sequence": "^2.2.1" }