MCPcopy
hub / github.com/ampproject/amphtml / runPreDistSteps

Function runPreDistSteps

build-system/tasks/dist.js:91–100  ·  view source on GitHub ↗

* Perform the prerequisite steps before starting the minified build. * Used by `amp` and `amp dist`. * * @param {!Object} options * @return {Promise }

(options)

Source from the content-addressed store, hash-verified

89 * @return {Promise<void>}
90 */
91async function runPreDistSteps(options) {
92 await prebuild();
93 await compileCss(options);
94 await copyCss();
95 await compileJison();
96 await copyParsers();
97 await bootstrapThirdPartyFrames(options);
98 await buildStoryLocalization(options);
99 displayLifecycleDebugging();
100}
101
102/**
103 * Minified build. Entry point for `amp dist`.

Callers 2

distFunction · 0.85
defaultTaskFunction · 0.85

Calls 8

prebuildFunction · 0.85
compileCssFunction · 0.85
copyCssFunction · 0.85
compileJisonFunction · 0.85
copyParsersFunction · 0.85
buildStoryLocalizationFunction · 0.85

Tested by

no test coverage detected