* @param {!Object} jsBundles * @param {string} name * @param {!Object} extraOptions * @return {!Promise}
(jsBundles, name, extraOptions)
| 78 | * @return {!Promise} |
| 79 | */ |
| 80 | function doBuildJs(jsBundles, name, extraOptions) { |
| 81 | const target = jsBundles[name]; |
| 82 | if (target) { |
| 83 | return compileJs( |
| 84 | target.srcDir, |
| 85 | target.srcFilename, |
| 86 | extraOptions.minify ? target.minifiedDestDir : target.destDir, |
| 87 | {...target.options, ...extraOptions} |
| 88 | ); |
| 89 | } else { |
| 90 | return Promise.reject( |
| 91 | [red('Error:'), 'Could not find', cyan(name)].join(' ') |
| 92 | ); |
| 93 | } |
| 94 | } |
| 95 | |
| 96 | /** |
| 97 | * Generates frames.html |
no test coverage detected