* Build amp-web-push publisher files HTML page. * @return {Promise }
()
| 208 | * @return {Promise<void>} |
| 209 | */ |
| 210 | async function buildWebPushPublisherFiles() { |
| 211 | const distDir = 'dist/v0'; |
| 212 | for (const version of WEB_PUSH_PUBLISHER_VERSIONS) { |
| 213 | for (const fileName of WEB_PUSH_PUBLISHER_FILES) { |
| 214 | const tempBuildDir = `build/all/amp-web-push-${version}`; |
| 215 | const builtName = `${fileName}.js`; |
| 216 | const minifiedName = maybeToEsmName(builtName); |
| 217 | await compileJs(`./${tempBuildDir}`, builtName, `./${distDir}`, { |
| 218 | watch: argv.watch, |
| 219 | includePolyfills: true, |
| 220 | minify: true, |
| 221 | minifiedName, |
| 222 | }); |
| 223 | } |
| 224 | } |
| 225 | await postBuildWebPushPublisherFilesVersion(); |
| 226 | } |
| 227 | |
| 228 | /** |
| 229 | * @return {Promise<void>} |
no test coverage detected