* Invokes the repo-local `amp` task runner if we are inside a git repository.
()
| 29 | * Invokes the repo-local `amp` task runner if we are inside a git repository. |
| 30 | */ |
| 31 | function 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 | |
| 40 | invokeAmpTaskRunner(); |
no test coverage detected