summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Krotscheck <krotscheck@gmail.com>2015-07-31 09:53:58 +1000
committerMichael Krotscheck <krotscheck@gmail.com>2015-07-31 10:01:15 +1000
commite2ef8d991eb105573e0a62cfe9a3eacd0fe60fd0 (patch)
tree33f24e7f4ce402d112bf5a64c040a0569098d73d
parent178f5ad1358b7c3e2275ff4340135ea4f8a9a629 (diff)
Added gh-pages invocation for release
-rw-r--r--.gitignore1
-rw-r--r--gulpfile.js14
-rw-r--r--package.json5
3 files changed, 18 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore
index c825564..b4f2bf6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -31,3 +31,4 @@ bower_components
31.idea 31.idea
32*.iml 32*.iml
33dist 33dist
34.publish
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 *
diff --git a/package.json b/package.json
index 65441f5..cdafc8d 100644
--- a/package.json
+++ b/package.json
@@ -8,8 +8,8 @@
8 "postinstall": "bower install", 8 "postinstall": "bower install",
9 "start": "gulp serve", 9 "start": "gulp serve",
10 "prestart": "gulp package", 10 "prestart": "gulp package",
11 "prepublish": "gulp package", 11 "new": "gulp new",
12 "new": "gulp new" 12 "release": "gulp release"
13 }, 13 },
14 "author": { 14 "author": {
15 "name": "Michael Krotscheck", 15 "name": "Michael Krotscheck",
@@ -24,6 +24,7 @@
24 "gulp": "^3.9.0", 24 "gulp": "^3.9.0",
25 "gulp-compile-handlebars": "^0.5.0", 25 "gulp-compile-handlebars": "^0.5.0",
26 "gulp-filter": "^3.0.0", 26 "gulp-filter": "^3.0.0",
27 "gulp-gh-pages": "^0.5.2",
27 "gulp-git": "^1.2.4", 28 "gulp-git": "^1.2.4",
28 "gulp-ignore": "^1.2.1", 29 "gulp-ignore": "^1.2.1",
29 "gulp-less": "^3.0.3", 30 "gulp-less": "^3.0.3",