aboutsummaryrefslogtreecommitdiffstats
path: root/gulpfile.js
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2016-10-23 15:27:28 +1100
committerSam Potts <me@sampotts.me>2016-10-23 15:27:28 +1100
commit5cecf16d4f9edecdbf656e2618b8748ebff677d8 (patch)
tree1a06c99fbb1ea61b23a3e061e526c4154150eaae /gulpfile.js
parent21a30f1b6fd3f95550ea37fc610b94ea9e688899 (diff)
parenta3ed3093429d5306a89566215207d42a476392d8 (diff)
downloadplyr-5cecf16d4f9edecdbf656e2618b8748ebff677d8.tar.lz
plyr-5cecf16d4f9edecdbf656e2618b8748ebff677d8.tar.xz
plyr-5cecf16d4f9edecdbf656e2618b8748ebff677d8.zip
Merge branch 'master' into develop
# Conflicts: # demo/dist/demo.js # dist/plyr.css # dist/plyr.js
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/gulpfile.js b/gulpfile.js
index f4c5d467..c0309ea9 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -245,15 +245,15 @@ options = {
// If aws is setup
if("cdn" in aws) {
var regex = "(?:0|[1-9][0-9]*)\\.(?:0|[1-9][0-9]*)\.(?:0|[1-9][0-9]*)(?:-[\\da-z\\-]+(?:\.[\\da-z\\-]+)*)?(?:\\+[\\da-z\\-]+(?:\.[\\da-z\\-]+)*)?",
- cdnpath = new RegExp(aws.cdn.bucket + "\/" + regex, "gi"),
+ cdnpath = new RegExp(aws.cdn.domain + "\/" + regex, "gi"),
semver = new RegExp("v" + regex, "gi"),
localPath = new RegExp("(\.\.\/)?dist", "gi"),
- versionPath = "https://" + aws.cdn.bucket + "/" + version;
+ versionPath = "https://" + aws.cdn.domain + "/" + version;
}
// Publish version to CDN bucket
gulp.task("cdn", function () {
- console.log("Uploading " + version + " to " + aws.cdn.bucket + "...");
+ console.log("Uploading " + version + " to " + aws.cdn.domain + "...");
// Upload to CDN
return gulp.src(paths.upload)
@@ -270,17 +270,17 @@ gulp.task("cdn", function () {
// Publish to demo bucket
gulp.task("demo", function () {
- console.log("Uploading " + version + " demo to " + aws.demo.bucket + "...");
+ console.log("Uploading " + version + " demo to " + aws.demo.domain + "...");
// Replace versioned files in readme.md
gulp.src([root + "/readme.md"])
- .pipe(replace(cdnpath, aws.cdn.bucket + "/" + version))
+ .pipe(replace(cdnpath, aws.cdn.domain + "/" + version))
.pipe(gulp.dest(root));
// Replace versioned files in plyr.js
gulp.src(path.join(root, "src/js/plyr.js"))
.pipe(replace(semver, "v" + version))
- .pipe(replace(cdnpath, aws.cdn.bucket + "/" + version))
+ .pipe(replace(cdnpath, aws.cdn.domain + "/" + version))
.pipe(gulp.dest(path.join(root, "src/js/")));
// Replace local file paths with remote paths in demo HTML
@@ -320,14 +320,14 @@ gulp.task("demo", function () {
// Open the demo site to check it's sweet
gulp.task("open", function () {
- console.log("Opening " + aws.demo.bucket + "...");
+ console.log("Opening " + aws.demo.domain + "...");
// A file must be specified or gulp will skip the task
// Doesn't matter which file since we set the URL above
// Weird, I know...
return gulp.src([paths.demo.root + "index.html"])
.pipe(open("", {
- url: "http://" + aws.demo.bucket
+ url: "http://" + aws.demo.domain
}));
});