(target: string, extraArgs: string = '')
| 187 | } |
| 188 | |
| 189 | async buildTarget(target: string, extraArgs: string = ''): Promise<CommandResult> { |
| 190 | // Use 'inherit' as the stdio mode by default as usually the output irrelevant |
| 191 | // and only the success/failure matters |
| 192 | const commandBuildTarget = `build ${target} ${extraArgs}`; |
| 193 | |
| 194 | return await this.spawnCommand(commandBuildTarget, 'inherit').catch(() => { |
| 195 | throw new CliError(`Failed to build target: ${target}`); |
| 196 | }); |
| 197 | } |
| 198 | |
| 199 | async buildTargets(targets: readonly string[]): Promise<CommandResult> { |
| 200 | // Use 'inherit' as the stdio mode by default as usually the output irrelevant |
no test coverage detected