Peter Bacon Darwin 3cad5da5a4 build(aio): refactor dgeni packages
This is to tidy up the `author-packagse`, which currently duplicates a
lot of the configuration in the main packages. We need to
DRY this up so that we don't fall foul of a change in one being missed in
the other.
2017-04-23 22:50:33 +01:00

13 lines
257 B
JavaScript

module.exports = function copyContentAssetsProcessor(copyFolder) {
return {
$runAfter: ['files-written'],
assetMappings: [],
$process() {
this.assetMappings.forEach(map => {
copyFolder(map.from, map.to);
});
}
};
};