* @return {Promise }
()
| 245 | * @return {Promise<void>} |
| 246 | */ |
| 247 | async function bundleSize() { |
| 248 | if (argv.on_skipped_build) { |
| 249 | return skipBundleSize(); |
| 250 | } else if (argv.on_push_build) { |
| 251 | return storeBundleSize(); |
| 252 | } else if (argv.on_pr_build) { |
| 253 | return reportBundleSize(); |
| 254 | } else if (argv.on_local_build) { |
| 255 | return getLocalBundleSize(); |
| 256 | } else { |
| 257 | log(red('Called'), cyan('amp bundle-size'), red('with no task.')); |
| 258 | process.exitCode = 1; |
| 259 | } |
| 260 | } |
| 261 | |
| 262 | module.exports = { |
| 263 | bundleSize, |
nothing calls this directly
no test coverage detected