* The default task run when `amp` is executed * * @return {!Promise}
()
| 26 | * @return {!Promise} |
| 27 | */ |
| 28 | async function defaultTask() { |
| 29 | createCtrlcHandler('amp'); |
| 30 | process.env.NODE_ENV = 'development'; |
| 31 | printConfigHelp('amp'); |
| 32 | printDefaultTaskHelp(); |
| 33 | parseExtensionFlags(/* preBuild */ true); |
| 34 | |
| 35 | const options = {fortesting: true, minify: argv.minified, watch: true}; |
| 36 | if (argv.minified) { |
| 37 | await runPreDistSteps(options); |
| 38 | } else { |
| 39 | await runPreBuildSteps(options); |
| 40 | } |
| 41 | |
| 42 | await doServe(/* lazyBuild */ true); |
| 43 | log(green('JS and extensions will be lazily built when requested...')); |
| 44 | } |
| 45 | |
| 46 | module.exports = { |
| 47 | defaultTask, |
nothing calls this directly
no test coverage detected