diff options
author | Michael Krotscheck <krotscheck@gmail.com> | 2015-07-31 09:53:58 +1000 |
---|---|---|
committer | Michael Krotscheck <krotscheck@gmail.com> | 2015-07-31 10:01:15 +1000 |
commit | e2ef8d991eb105573e0a62cfe9a3eacd0fe60fd0 (patch) | |
tree | 33f24e7f4ce402d112bf5a64c040a0569098d73d /gulpfile.js | |
parent | 178f5ad1358b7c3e2275ff4340135ea4f8a9a629 (diff) |
Added gh-pages invocation for release
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js index 4ea26d3..cffd79c 100644 --- a/gulpfile.js +++ b/gulpfile.js | |||
@@ -8,6 +8,7 @@ | |||
8 | 8 | ||
9 | var gulp = require('gulp'); | 9 | var gulp = require('gulp'); |
10 | var git = require('gulp-git'); | 10 | var git = require('gulp-git'); |
11 | var ghPages = require('gulp-gh-pages'); | ||
11 | var filter = require('gulp-filter'); | 12 | var filter = require('gulp-filter'); |
12 | var less = require('gulp-less'); | 13 | var less = require('gulp-less'); |
13 | var webserver = require('gulp-webserver'); | 14 | var webserver = require('gulp-webserver'); |
@@ -216,6 +217,19 @@ | |||
216 | gulp.task('package', ['package:html', 'package:hbs', 'package:libs']); | 217 | gulp.task('package', ['package:html', 'package:hbs', 'package:libs']); |
217 | 218 | ||
218 | /** | 219 | /** |
220 | * Push the contents of the dist directory to gh-pages. | ||
221 | */ | ||
222 | gulp.task('gh-pages', function () { | ||
223 | return gulp.src(dir.dist + '/**/*') | ||
224 | .pipe(ghPages()); | ||
225 | }); | ||
226 | |||
227 | /** | ||
228 | * Build the current release package and push it to gh-pages. | ||
229 | */ | ||
230 | gulp.task('release', ['package', 'gh-pages']); | ||
231 | |||
232 | /** | ||
219 | * Start a local server and serve the application code. This is | 233 | * Start a local server and serve the application code. This is |
220 | * equivalent to opening index.html in a browser. | 234 | * equivalent to opening index.html in a browser. |
221 | * | 235 | * |