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

Function preBuildExtensions

build-system/server/lazy-build.js:159–167  ·  view source on GitHub ↗

* Pre-builds default extensions and ones requested via command line flags. * @return {Promise }

()

Source from the content-addressed store, hash-verified

157 * @return {Promise<void>}
158 */
159async function preBuildExtensions() {
160 const extensions = getExtensionsToBuild(/* preBuild */ true);
161 for (const extensionBundle in extensionBundles) {
162 const extension = extensionBundles[extensionBundle].name;
163 if (extensions.includes(extension) && !extensionBundle.endsWith('latest')) {
164 await build(extensionBundles, extensionBundle, doBuildExtension);
165 }
166 }
167}
168
169module.exports = {
170 lazyBuildExtensions,

Callers 1

performPreBuildStepsFunction · 0.85

Calls 2

getExtensionsToBuildFunction · 0.85
buildFunction · 0.70

Tested by

no test coverage detected