From e0cd34c9965575fddba863bb8c9a3126f6ac722b Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 25 Jul 2015 20:45:11 +1000 Subject: Fix for omitted kind attribute on (fixes #88) --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 6c84bf69..76d6cb81 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -167,7 +167,7 @@ build.js(bundles.docs.js, "docs"); // Default gulp task gulp.task("default", function(){ - run("templates", tasks.js, tasks.less, "sprite"); + run("templates", tasks.js, tasks.less, "sprite", "watch"); }); // Build all JS (inc. templates) -- cgit v1.2.3 From fe1989dea10dbb8ad7c4bf358d88c00b3592996e Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 25 Jul 2015 22:06:13 +1000 Subject: gulp --- gulpfile.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 76d6cb81..547bbcba 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -165,11 +165,6 @@ build.templates(); build.less(bundles.docs.less, "docs"); build.js(bundles.docs.js, "docs"); -// Default gulp task -gulp.task("default", function(){ - run("templates", tasks.js, tasks.less, "sprite", "watch"); -}); - // Build all JS (inc. templates) gulp.task("js", function(){ run("templates", tasks.js); @@ -193,6 +188,11 @@ gulp.task("watch", function () { gulp.watch(paths.docs.src.templates, ["js"]); }); +// Default gulp task +gulp.task("default", function(){ + run("templates", tasks.js, tasks.less, "sprite", "watch"); +}); + // Publish a version to CDN and docs // -------------------------------------------- -- cgit v1.2.3 From aad4a720dcb0755371c2c8062ae9e8286ba9f467 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 31 Jul 2015 21:32:12 +1000 Subject: Tooltip fix for NVDA --- gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 547bbcba..3edf9209 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -203,7 +203,7 @@ maxAge = 31536000, // seconds 1 year options = { cdn: { headers: { - "Cache-Control": "max-age=" + maxAge + ", no-transform, public", + "Cache-Control": "max-age=" + maxAge, "Vary": "Accept-Encoding" }, gzippedOnly: true -- cgit v1.2.3 From 6543fc1e5bb8445f816b8206f6b36521dead6364 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Fri, 21 Aug 2015 21:36:15 +1000 Subject: Fixed bug with API use on basic supported browsers --- gulpfile.js | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 3edf9209..5b354740 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -66,7 +66,12 @@ package = loadJSON(path.join(root, "package.json")); // Load json function loadJSON(path) { - return JSON.parse(fs.readFileSync(path)); + try { + return JSON.parse(fs.readFileSync(path)); + } + catch(err) { + return {}; + } } var build = { @@ -215,8 +220,12 @@ options = { }, gzippedOnly: true } -}, -cdnpath = new RegExp(aws.cdn.bucket + "\/(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)","gi"); +}; + +// If aws is setup +if("cdn" in aws) { + var cdnpath = new RegExp(aws.cdn.bucket + "\/(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)","gi"); +} // Publish version to CDN bucket gulp.task("cdn", function () { -- cgit v1.2.3