({platforms, debug})
| 52 | } |
| 53 | |
| 54 | async function codeStyle({platforms, debug}) { |
| 55 | if (debug) { |
| 56 | throw new Error('code-style task does not support debug builds'); |
| 57 | } |
| 58 | const promisses = []; |
| 59 | if (platforms[PLATFORM.API]) { |
| 60 | promisses.push(processAPIBuild()); |
| 61 | } |
| 62 | Object.values(PLATFORM) |
| 63 | .filter((platform) => platform !== PLATFORM.API && platforms[platform]) |
| 64 | .forEach((platform) => promisses.push(processExtensionPlatform(platform))); |
| 65 | await Promise.all(promisses); |
| 66 | } |
| 67 | |
| 68 | const codeStyleTask = createTask( |
| 69 | 'code-style', |
nothing calls this directly
no test coverage detected