From 2959c4d7cdb2d3fb7eaa2c5d1b72b00bf28a3cb7 Mon Sep 17 00:00:00 2001 From: Donovan Hutchinson Date: Wed, 27 May 2015 21:57:33 +0100 Subject: [PATCH] Adding gulp deploy option --- .gitignore | 1 + gulpfile.js | 8 +++++++- package.json | 1 + 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 3d4e371..14d71a8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ node_modules .DS_Store .sass-cache +.publish diff --git a/gulpfile.js b/gulpfile.js index fe51551..02c94ad 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -15,7 +15,8 @@ var gulp = require('gulp'), cp = require('child_process'), changed = require('gulp-changed'), imagemin = require('gulp-imagemin'), - size = require('gulp-size'); + size = require('gulp-size'), + ghPages = require('gulp-gh-pages'); gulp.task('styles', function() { @@ -71,6 +72,11 @@ gulp.task('browser-sync', ['styles', 'scripts'], function() { }); }); +gulp.task('deploy', function() { + return gulp.src('./public/**/*') + .pipe(ghPages()); +}); + gulp.task('watch', function() { // Watch .html files gulp.watch('src/**/*.html', ['html', browserSync.reload]); diff --git a/package.json b/package.json index 904ce5b..a216f07 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,7 @@ "gulp-changed": "^1.2.1", "gulp-concat": "^2.5.2", "gulp-cssshrink": "^0.1.4", + "gulp-gh-pages": "^0.5.1", "gulp-imagemin": "^2.2.1", "gulp-jshint": "^1.11.0", "gulp-minify-css": "^1.1.1",