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

Function runPreBuildSteps

build-system/tasks/build.js:30–36  ·  view source on GitHub ↗

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

(options)

Source from the content-addressed store, hash-verified

28 * @return {Promise}
29 */
30async function runPreBuildSteps(options) {
31 return Promise.all([
32 buildStoryLocalization(options),
33 compileCss(options),
34 bootstrapThirdPartyFrames(options),
35 ]);
36}
37
38/**
39 * Unminified build. Entry point for `amp build`.

Callers 2

buildFunction · 0.85
defaultTaskFunction · 0.85

Calls 3

buildStoryLocalizationFunction · 0.85
compileCssFunction · 0.85

Tested by

no test coverage detected