(cli *cli, projectDir string)
| 415 | } |
| 416 | |
| 417 | func buildProject(cli *cli, projectDir string) error { |
| 418 | cmd := exec.Command("npm", "run", "build") |
| 419 | cmd.Dir = projectDir |
| 420 | |
| 421 | // Only show command output if debug mode is enabled. |
| 422 | if cli.debug { |
| 423 | cmd.Stdout = os.Stdout |
| 424 | cmd.Stderr = os.Stderr |
| 425 | } |
| 426 | |
| 427 | if err := cmd.Run(); err != nil { |
| 428 | return fmt.Errorf("build failed: %w", err) |
| 429 | } |
| 430 | |
| 431 | fmt.Println("✅ " + ansi.Green("Build completed successfully")) |
| 432 | return nil |
| 433 | } |
| 434 | |
| 435 | func selectScreensSimple(cli *cli, projectDir string, screenDirs []string) ([]string, error) { |
| 436 | // 1. Screens provided via --screens flag. |
no test coverage detected