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

Function invokeAmpTaskRunner

build-system/task-runner/amp-cli-runner.js:31–38  ·  view source on GitHub ↗

* Invokes the repo-local `amp` task runner if we are inside a git repository.

()

Source from the content-addressed store, hash-verified

29 * Invokes the repo-local `amp` task runner if we are inside a git repository.
30 */
31function invokeAmpTaskRunner() {
32 const repoRoot = getRepoRoot();
33 if (repoRoot) {
34 require(path.join(repoRoot, 'amp.js'));
35 } else {
36 console.log('\x1b[31mERROR:\x1b[0m Not inside a git repo');
37 }
38}
39
40invokeAmpTaskRunner();

Callers 1

amp-cli-runner.jsFile · 0.85

Calls 2

getRepoRootFunction · 0.85
logMethod · 0.45

Tested by

no test coverage detected