MCPcopy Index your code
hub / github.com/ampproject/amphtml / buildRuntime

Function buildRuntime

build-system/common/utils.js:19–26  ·  view source on GitHub ↗

* 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)

Source from the content-addressed store, hash-verified

17 * @return {Promise<void>}
18 */
19async 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.

Callers 3

firebaseFunction · 0.85
maybeBuildMethod · 0.85
setUpTesting_Function · 0.85

Calls 2

cleanFunction · 0.85
execOrDieFunction · 0.85

Tested by

no test coverage detected