WORK-452
ID:WORK-452Status:ready

create-refrakt framework x purpose axis (--framework and --template)

SPEC-109 §1,§5 — split the overloaded single axis: --framework selects the adapter, --template selects the purpose (the site template). Both default to preserve today's behaviour, and scaffolding composes framework starter + site template + theme.

Priority:highComplexity:moderateMilestone:v0.25.0Source:SPEC-109
claude/v0.25.0-workitems View source

Criteria completion

Criteria completion: 0 of 4 (0%) checked; tracking started on Jun 23, no incremental history yet0%25%50%75%100%Jun 23Jul 11

Tracking started Jun 23 — check back for trends.

Branches 3
History 1
  1. a6bdcba
    Created (ready)by bjornolofandersson

Acceptance Criteria

  • --framework <name> selects the adapter (svelte/astro/next/nuxt/eleventy/html), reconciling the existing --type/--target plumbing; the rename is documented
  • --template <name> selects the purpose; absent → today's minimal starter (existing behaviour preserved)
  • Scaffolding composes the three inputs (framework starter, site template site config, theme), injecting the framework-specific target/wiring
  • A --template value may be a bundled name, a local directory, or a package identifier (resolution shared with WORK-445)

Approach

Update bin.ts flag parsing and the compose step in scaffold.ts. The template's site config is framework-agnostic; the scaffolder injects the adapter wiring.

Dependencies

  • WORK-447--type dispatch / flag plumbing

References

  • SPEC-109 §1, §5; packages/create-refrakt/src/bin.ts