aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2015-03-21 17:00:05 +1100
committerSam Potts <me@sampotts.me>2015-03-21 17:00:05 +1100
commit388cb4df3964cf4db4e77eee5090bcf817c38dbc (patch)
tree4394730b0de9416a32a34150fbc75ce6364e8f2d /gulpfile.js
parent9feffb29729193bd2e6f622b2df48627d467df70 (diff)
downloadplyr-388cb4df3964cf4db4e77eee5090bcf817c38dbc.tar.lz
plyr-388cb4df3964cf4db4e77eee5090bcf817c38dbc.tar.xz
plyr-388cb4df3964cf4db4e77eee5090bcf817c38dbc.zip
Keyboard accessibility improvements (Fixes #66)
- Enter now works on checkboxes within the controls
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js12
1 files changed, 11 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index d00b9def..a8724dfc 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -22,7 +22,8 @@ var fs = require("fs"),
s3 = require("gulp-s3"),
gzip = require("gulp-gzip"),
replace = require("gulp-replace"),
- open = require("gulp-open");
+ open = require("gulp-open"),
+ size = require("gulp-size");
var root = __dirname,
paths = {
@@ -223,6 +224,10 @@ gulp.task("cdn", function () {
// Upload to CDN
gulp.src(paths.upload)
+ .pipe(size({
+ showFiles: true,
+ gzip: true
+ }))
.pipe(rename(function (path) {
path.dirname = path.dirname.replace(".", version);
}))
@@ -234,6 +239,11 @@ gulp.task("cdn", function () {
gulp.task("docs", function () {
console.log("Uploading " + version + " docs to " + aws.docs.bucket);
+ // Replace versioned files in readme.md
+ gulp.src([root + "/readme.md"])
+ .pipe(replace(cdnpath, aws.cdn.bucket + "/" + version))
+ .pipe(gulp.dest(root));
+
// Replace versioned files in *.html
gulp.src([paths.docs.root + "*.html"])
.pipe(replace(cdnpath, aws.cdn.bucket + "/" + version))