MCPcopy Create free account
hub / github.com/auth0/auth0-cli / buildProject

Function buildProject

internal/cli/acul_dev.go:417–433  ·  view source on GitHub ↗
(cli *cli, projectDir string)

Source from the content-addressed store, hash-verified

415}
416
417func 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
435func selectScreensSimple(cli *cli, projectDir string, screenDirs []string) ([]string, error) {
436 // 1. Screens provided via --screens flag.

Callers 1

runConnectedModeFunction · 0.85

Calls 2

GreenFunction · 0.92
ErrorfMethod · 0.80

Tested by

no test coverage detected