* Generates frames.html * * @param {!Object} options * @return {Promise }
(options)
| 100 | * @return {Promise<void>} |
| 101 | */ |
| 102 | async function bootstrapThirdPartyFrames(options) { |
| 103 | const startTime = Date.now(); |
| 104 | if (options.watch) { |
| 105 | thirdPartyFrames.forEach((frameObject) => { |
| 106 | const watchFunc = async () => { |
| 107 | await thirdPartyBootstrap(frameObject.max, frameObject.min, options); |
| 108 | }; |
| 109 | watch(frameObject.max).on( |
| 110 | 'change', |
| 111 | debounce(watchFunc, watchDebounceDelay) |
| 112 | ); |
| 113 | }); |
| 114 | } |
| 115 | await Promise.all( |
| 116 | thirdPartyFrames.map(async (frameObject) => { |
| 117 | await thirdPartyBootstrap(frameObject.max, frameObject.min, options); |
| 118 | }) |
| 119 | ); |
| 120 | endBuildStep( |
| 121 | 'Bootstrapped 3p frames into', |
| 122 | `dist.3p/${options.minify ? internalRuntimeVersion : 'current'}/`, |
| 123 | startTime |
| 124 | ); |
| 125 | } |
| 126 | |
| 127 | /** |
| 128 | * Compile and optionally minify the core runtime. |
no test coverage detected