Skip to content

Commit

Permalink
Adding gulp deploy option
Browse files Browse the repository at this point in the history
  • Loading branch information
Donovan Hutchinson committed May 27, 2015
1 parent a4e9350 commit 2959c4d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,3 +1,4 @@
node_modules
.DS_Store
.sass-cache
.publish
8 changes: 7 additions & 1 deletion gulpfile.js
Expand Up @@ -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() {
Expand Down Expand Up @@ -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]);
Expand Down
1 change: 1 addition & 0 deletions package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 2959c4d

Please sign in to comment.