From 0f49da1c2e723f0171f2dbd27e05c71907045df4 Mon Sep 17 00:00:00 2001 From: Jim Fisher Date: Wed, 6 May 2020 10:59:58 +0100 Subject: [PATCH] Do not copy sample assets if custom assets are provided If the user wants to manage their own assets, we should not include our own. This just leads to bloat and to confusion. --- lib/convert.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/convert.js b/lib/convert.js index 83b33e8..9163a87 100644 --- a/lib/convert.js +++ b/lib/convert.js @@ -115,8 +115,12 @@ function convertWithFileCopy (program) { utils.log(chalk.green.bold('Copying data...')) fs.copySync(manifestTemplate, manifest) utils.debug('Copied manifest template to destination') - fs.copySync(assetsTemplate, assets) - utils.debug('Copied asset template to destination') + if (program.assets) { + utils.debug('Not copying asset template to destination because custom assets are provided') + } else { + fs.copySync(assetsTemplate, assets) + utils.debug('Copied asset template to destination') + } fs.copySync(program.inputDirectory, app) utils.debug('Copied input app files to destination')