Guard against example <-> template drift #19

Closed
opened 2026-08-02 13:33:18 +00:00 by scheerenkevin · 1 comment
scheerenkevin commented 2026-08-02 13:33:18 +00:00 (Migrated from github.com)

apps/example, sprout_cli/templates/, and templates.g.dart are the same app in three places and have already drifted (homeTitle text; build_runner/freezed version pins).

  • Add a cli:embed staleness gate (re-run embed + git diff --exit-code) to CI
  • Reconcile the current drift (arb text, dep pins, doc comments)
  • Consider single-sourcing (generate example from template, or vice versa)

Sequence: LAST code step — after #16, #17, #20 (templates mirror apps/example). Absorbs #21's CreateCommand.run extract + template analysis_options drift.

apps/example, sprout_cli/templates/, and templates.g.dart are the same app in three places and have already drifted (homeTitle text; build_runner/freezed version pins). - [ ] Add a cli:embed staleness gate (re-run embed + git diff --exit-code) to CI - [ ] Reconcile the current drift (arb text, dep pins, doc comments) - [ ] Consider single-sourcing (generate example from template, or vice versa) Sequence: LAST code step — after #16, #17, #20 (templates mirror apps/example). Absorbs #21's CreateCommand.run extract + template analysis_options drift.
scheerenkevin commented 2026-08-02 14:35:20 +00:00 (Migrated from github.com)

Done in the merged PR: cli:embed:check drift gate (in check) + dep-pin align. Single-sourcing example↔templates deferred.

Done in the merged PR: cli:embed:check drift gate (in check) + dep-pin align. Single-sourcing example↔templates deferred.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
sprout/sprout#19
No description provided.