diff --git a/demo/gulpfile.js b/demo/gulpfile.js index e57b2f5..709996b 100644 --- a/demo/gulpfile.js +++ b/demo/gulpfile.js @@ -2,6 +2,7 @@ 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) @@ -19,3 +20,12 @@ gulp.task("build", () => ) gulp.watch("js/*.js", ["build"]) + +/** + * Push build to gh-pages + */ +gulp.task('deploy', function () { + return gulp + .src("./dist/**/*") + .pipe(deploy()) +}); 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" }