Skip to content

rails-vue: ship ui/public/tokens.css and ui.css - #20

Closed
ahmad-ajmal wants to merge 1 commit into
mainfrom
ahmad/rails-vue-ui-public
Closed

ahmad-ajmal wants to merge 1 commit into
mainfrom
ahmad/rails-vue-ui-public

Conversation

@ahmad-ajmal

Copy link
Copy Markdown
Collaborator
  • The bug: the rails-vue template's .gitignore meant to ignore the Rails-served build output at its root. Its unanchored public/ also matched ui/public/, so the token sheet and component styles the View links (/tokens.css, /ui.css) were never committed. Every scaffolded rails-vue app shipped unstyled.
  • The fix: the rule is anchored to the template root (/public/), and both sheets are added, vendored in lockstep with the React blueprints. The Vue View uses the same class names.
  • Verified: git check-ignore confirms ui/public/ is tracked while the root public/ build output stays ignored. A fresh scaffold --blueprint blueprint-rails-vue contains both files, and vite build copies them into the served public/.

Found while working on #18.

🤖 Generated with Claude Code

The template's `.gitignore` meant to ignore the Rails-served build output at
its root, but the unanchored `public/` also matched `ui/public/`, so the kit
token sheet and the component styles the View links (/tokens.css, /ui.css)
were never committed. A scaffolded rails-vue app shipped unstyled.

Anchor the rule to the template root and add both sheets, vendored in
lockstep with the React blueprints (the Vue View uses the same classes).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ahmad-ajmal ahmad-ajmal closed this Oct 2, 2026
@ahmad-ajmal
ahmad-ajmal deleted the ahmad/rails-vue-ui-public branch October 2, 2026 13:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant