Skip to content

Rich console output for gpjsui dev/build #1

Description

@tom96da

gpjsui dev/build currently print plain [gpjsui] ... lines. Want
something closer to a build summary (file, size, duration) and a
dev-server log (which file triggered a rebuild).

Decision: use consola, not
@clack/prompts — clack fits interactive scaffolding prompts, not a
running log stream. Save @clack/prompts for a future bootstrap/
scaffolding CLI instead.

Approach

  • @gpjs-ui/vite's watch(): report the changed file and rebuild
    duration through onBuild/onError (available via the underlying
    watcher's "change" event, currently unused)
  • @gpjs-ui/cli: adopt consola for dev/build output — ready/rebuilt
    lines with the changed file and duration, and a build summary with the
    bundle's file size

Out of scope

  • Per-module HMR output ("hot update: App.vue") — blocked on Phase 3.4

Tasks

  • @gpjs-ui/vite: report changed file + duration through watch
  • @gpjs-ui/cli: switch dev/build to consola-based output

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions