Skip to content

Commit

Permalink
8.4.0 – Adjusting copy:assets to work in the docs (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleynolan authored and kevinrodrigues committed Feb 12, 2019
1 parent 37a1af0 commit 801c2ff
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 8 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).


v8.4.0
------------------------------
*February 12, 2019*

### Fixed
- Adjusted `copy:assets` task so that it copies the assets over to the relevant docs folder when running in docs mode.


v8.3.0
------------------------------
*November 27, 2018*
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@justeat/gulp-build-fozzie",
"version": "8.3.0",
"version": "8.4.0",
"description": "Gulp build tasks for use across Fozzie modules",
"main": "index.js",
"author": "Damian Mullins <[email protected]> (http://www.damianmullins.com)",
Expand Down
28 changes: 21 additions & 7 deletions tasks/copy.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,24 @@ gulp.task('copy:docs', () => {
* Copy assets from from packages to the dist folder.
*
*/
gulp.task('copy:assets', () => copyAssets({
pkgSrcGlob: config.importedAssets.importedAssetsSrcGlob,
dest: config.assetDistDir,
verbose: config.importedAssets.verbose,
logger: gutil.log
})
.catch(config.gulp.onError));
gulp.task('copy:assets', cb => {
copyAssets({
pkgSrcGlob: config.importedAssets.importedAssetsSrcGlob,
dest: config.assetDistDir,
verbose: config.importedAssets.verbose,
logger: gutil.log
})
.catch(config.gulp.onError)
.then(() => {
if (config.docs.outputAssets) {
copyAssets({
pkgSrcGlob: config.importedAssets.importedAssetsSrcGlob,
dest: pathBuilder.docsAssetsDistDir,
verbose: config.importedAssets.verbose,
logger: gutil.log
})
.catch(config.gulp.onError);
}
});
cb();
});

0 comments on commit 801c2ff

Please sign in to comment.