* Performs a clean build of the AMP runtime in testing mode. * Used by `amp e2e|integration|visual-diff`. * * @param {boolean} opt_minified builds the minified runtime * @return {Promise }
(opt_minified = false)
| 17 | * @return {Promise<void>} |
| 18 | */ |
| 19 | async function buildRuntime(opt_minified = false) { |
| 20 | await clean(); |
| 21 | if (argv.minified || opt_minified === true) { |
| 22 | execOrDie(`amp dist --fortesting`); |
| 23 | } else { |
| 24 | execOrDie(`amp build --fortesting`); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | /** |
| 29 | * Extracts and validates the config for the given experiment. |
no test coverage detected