summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js14
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 *