async function deployAssets()

in scripts/deploy.js [66:80]


async function deployAssets() {
    spinner.start('Deploying assets')

    let paths = await listFiles(localAssetsPath, { filter: ['.DS_Store', '.gitkeep'] });

    for (let filePath of paths) {
        const body = fs.createReadStream(filePath);
        const relativePath = path.relative(localAssetsPath, filePath);
        const key = path.join(s3Path, 'assets', version, relativePath);

        await upload(body, key);
    }

    spinner.succeed('Assets deployed')
}