diff options
author | Sam Potts <sam@potts.es> | 2018-05-08 22:22:43 +1000 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-05-08 22:22:43 +1000 |
commit | 34401de3d03e61eb7d1a04f6f0b7599e7ce9cd93 (patch) | |
tree | f8f46e1f38bdfb28d8ccc146a4d014ca1ca05a31 /gulpfile.js | |
parent | 403df36af6813acf762e2b85bae6b1584b781c59 (diff) | |
parent | f687b81b70a73835f0190fbfa17a0fbbfcd28b7a (diff) | |
download | plyr-34401de3d03e61eb7d1a04f6f0b7599e7ce9cd93.tar.lz plyr-34401de3d03e61eb7d1a04f6f0b7599e7ce9cd93.tar.xz plyr-34401de3d03e61eb7d1a04f6f0b7599e7ce9cd93.zip |
Merge branch 'master' into develop
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gulpfile.js b/gulpfile.js index 46a18258..eec51aba 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -129,7 +129,7 @@ const build = { tasks.js.push(name); const { output } = paths[bundle]; - gulp.task(name, () => + return gulp.task(name, () => gulp .src(bundles[bundle].js[key]) .pipe(sourcemaps.init()) @@ -162,7 +162,7 @@ const build = { const name = `sass:${key}`; tasks.sass.push(name); - gulp.task(name, () => + return gulp.task(name, () => gulp .src(bundles[bundle].sass[key]) .pipe(sass()) @@ -180,7 +180,7 @@ const build = { tasks.sprite.push(name); // Process Icons - gulp.task(name, () => + return gulp.task(name, () => gulp .src(paths[bundle].src.sprite) .pipe( @@ -287,7 +287,8 @@ if (Object.keys(aws).includes('cdn') && Object.keys(aws).includes('demo')) { 'plyr.polyfilled.js', 'defaults.js', ]; - gulp + + return gulp .src(files.map(file => path.join(root, `src/js/${file}`))) .pipe(replace(semver, `v${version}`)) .pipe(replace(cdnpath, `${aws.cdn.domain}/${version}/`)) @@ -406,7 +407,7 @@ if (Object.keys(aws).includes('cdn') && Object.keys(aws).includes('demo')) { }); // Do everything - gulp.task('publish', () => { - run('version', tasks.clean, tasks.js, tasks.sass, tasks.sprite, 'cdn', 'demo'); + gulp.task('publish', callback => { + run('version', tasks.clean, tasks.js, tasks.sass, tasks.sprite, 'cdn', 'demo', callback); }); } |