add gulp deploy and nojekyll file

This commit is contained in:
Joshua Seigler 2017-02-13 04:05:12 -05:00
parent 24dfe2fd01
commit 04036b1556
4 changed files with 185 additions and 18 deletions

View file

@ -27,6 +27,7 @@ var gulp = require('gulp'),
revAll = require('gulp-rev-all'), // hashes static resources, updates references to them
gulpif = require('gulp-if'), // conditionally process part of a vinyl stream
htmlbeautify = require('gulp-html-beautify'), // clean up HTML formatting
ghpages = require('gulp-gh-pages'), // push a folder to the gh-pages branch
path = require('path'),
spawn = require('child_process').spawn,
// Define source and destination paths
@ -173,8 +174,15 @@ gulp.task('build:site', ['clean:site', 'build:less', 'build:icons'], function ()
/\.xml$/g
] }))
.pipe(gulp.dest('./cdn'));
gulp.src('./dist/.nojekyll')
.pipe(gulp.dest('./cdn'));
});
});
gulp.task('deploy', function () {
return gulp.src('./cdn/**')
.pipe(ghpages());
});
// Default will run the 'entry' task
gulp.task('default', ['watch']);