diff options
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/gulpfile.js b/gulpfile.js index cffd79c..6884eae 100644 --- a/gulpfile.js +++ b/gulpfile.js | |||
@@ -8,9 +8,9 @@ | |||
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'); | ||
12 | var filter = require('gulp-filter'); | 11 | var filter = require('gulp-filter'); |
13 | var less = require('gulp-less'); | 12 | var less = require('gulp-less'); |
13 | var rsync = require('gulp-rsync'); | ||
14 | var webserver = require('gulp-webserver'); | 14 | var webserver = require('gulp-webserver'); |
15 | var streamqueue = require('streamqueue'); | 15 | var streamqueue = require('streamqueue'); |
16 | var ignore = require('gulp-ignore'); | 16 | var ignore = require('gulp-ignore'); |
@@ -62,7 +62,6 @@ | |||
62 | var $ = cheerio.load(fs.readFileSync(file)); | 62 | var $ = cheerio.load(fs.readFileSync(file)); |
63 | presentations.push({ | 63 | presentations.push({ |
64 | 'title': $("head title").text(), | 64 | 'title': $("head title").text(), |
65 | 'description': $("head meta[name='description']").attr('content'), | ||
66 | 'author': $('head meta[name="author"]').attr('content'), | 65 | 'author': $('head meta[name="author"]').attr('content'), |
67 | 'mtime': stat.mtime, | 66 | 'mtime': stat.mtime, |
68 | 'path': files[i] + '/index.html' | 67 | 'path': files[i] + '/index.html' |
@@ -216,18 +215,18 @@ | |||
216 | */ | 215 | */ |
217 | gulp.task('package', ['package:html', 'package:hbs', 'package:libs']); | 216 | gulp.task('package', ['package:html', 'package:hbs', 'package:libs']); |
218 | 217 | ||
219 | /** | 218 | gulp.task('rsync', function () { |
220 | * Push the contents of the dist directory to gh-pages. | 219 | gulp.src('dest/**') |
221 | */ | 220 | .pipe(rsync({ |
222 | gulp.task('gh-pages', function () { | 221 | root: 'dest', |
223 | return gulp.src(dir.dist + '/**/*') | 222 | hostname: 'kleos.inaugust.com', |
224 | .pipe(ghPages()); | 223 | destination: '/var/www/inaugust.com/talks' |
224 | })); | ||
225 | }); | 225 | }); |
226 | |||
227 | /** | 226 | /** |
228 | * Build the current release package and push it to gh-pages. | 227 | * Build the current release package and push it |
229 | */ | 228 | */ |
230 | gulp.task('release', ['package', 'gh-pages']); | 229 | gulp.task('release', ['package', 'rsync']); |
231 | 230 | ||
232 | /** | 231 | /** |
233 | * Start a local server and serve the application code. This is | 232 | * Start a local server and serve the application code. This is |