mix phia.design.analyze (phia_ui v0.1.17)

Copy Markdown View Source

Analyze a saved PhiaUI design file.

Reports component usage, required JS hooks, install commands, and potential issues. Useful for CI pipelines or pre-deploy checks.

Usage

mix phia.design.analyze my_design.phia.json
mix phia.design.analyze my_design.phia.json --json

Options

  • --json (-j) — Output as JSON instead of human-readable text

Output

The analysis includes:

  • File metadata — name, theme, node count
  • Components used — sorted list of unique component names
  • JS hooks required — hooks that must be registered in your app.js
  • Install commandsmix phia.add commands to install needed components

Examples

# Human-readable report
mix phia.design.analyze dashboard.phia.json

# JSON for scripting
mix phia.design.analyze dashboard.phia.json --json | jq '.js_hooks_required'