diff options
author | Sam <me@sampotts.me> | 2016-10-23 21:16:49 +1100 |
---|---|---|
committer | Sam <me@sampotts.me> | 2016-10-23 21:16:49 +1100 |
commit | 2aa9b267ab110454a1d8c2a210e89cd8a6a1f384 (patch) | |
tree | ca9a2fb884b11f9593869d88f7cab4b12f3fe483 /gulpfile.js | |
parent | 90338d96000dcebd89fcb7f10d09afe0522cd1c0 (diff) | |
parent | 5cecf16d4f9edecdbf656e2618b8748ebff677d8 (diff) | |
download | plyr-2aa9b267ab110454a1d8c2a210e89cd8a6a1f384.tar.lz plyr-2aa9b267ab110454a1d8c2a210e89cd8a6a1f384.tar.xz plyr-2aa9b267ab110454a1d8c2a210e89cd8a6a1f384.zip |
Merge branch 'develop' of https://github.com/Selz/plyr into develop
# Conflicts:
# src/js/plyr.js
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 16 |
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 })); }); |