feat(config): add Sass, Bun, Vite, and test framework options#6
Merged
feat(config): add Sass, Bun, Vite, and test framework options#6
Conversation
Add support for additional CSS frameworks (Sass, None), JavaScript bundlers (Bun, Vite via vite_rails, None), and explicit test framework selection (Minitest/RSpec). Enhance CommandBuilder to support choice-level rails_flag configuration for SELECT questions. Add automatic post-actions for RSpec and Vite setup. Version bump to 0.3.0. - Add Sass and None options to CSS framework selection - Add Bun, Vite, and None options to JavaScript bundler selection - Add test framework selection question (Minitest default, RSpec option) - Enhance CommandBuilder.process_select for choice-level rails_flag support - Add automatic RSpec setup post-action (bundle add + generate rspec:install) - Add automatic Vite setup post-action (bundle add vite_rails + vite install) - Comprehensive test coverage for choice-level flag feature - All tests pass (33 runs, 97 assertions, 0 failures) - RuboCop clean (no offenses)
Add new preset for modern frontend stack using Vite + Bundlebun. Bundlebun packages Bun runtime as a gem for unified dependency management via Bundler. - Add bundlebun post-action (disabled by default) for Bun users - Create vite-bun.yaml preset with PostgreSQL, Tailwind, Vite, and Minitest - Enable both setup_vite and setup_bundlebun post-actions in preset - Update CHANGELOG with new preset and bundlebun post-action Usage: railstart new myapp --preset vite-bun
Add comprehensive documentation for creating railstart preset files. Guide covers YAML structure, ID-based merging, post-action configuration, and step-by-step workflow for building new presets. - Document three-layer configuration system (base → user → preset) - List all available questions and post-actions with details - Provide real-world examples (vite-bun, api-only, rspec presets) - Include best practices, common patterns, and troubleshooting - Add testing checklist and validation commands - Remove /docs/ from .gitignore to track documentation This enables LLMs and developers to confidently create new preset configurations for team-specific or stack-specific Rails app generation workflows. build: exclude docs/ from gem package Add docs/ to gemspec file exclusion list. Documentation files in docs/ are for development/LLM guidance only and should not be included in the distributed gem package. - Add docs/ to spec.files reject list - Verified with gem build: no docs/ files included - Keeps gem package lean and focused on runtime files
Add comprehensive documentation section to README about creating custom presets, with link to the preset builder skill guide. Changes: - Add "Creating Custom Presets" section to README with: - Quick preset creation example - List of built-in presets (default, api-only, vite-bun) - Link to skill guide at docs/railstart-preset-builder/SKILL.md The skill file remains at its original location for LLM consumption. The README provides user-facing quick intro and discovery.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
• Add support for Sass and None options to CSS framework selection
• Add Bun, Vite, and None options to JavaScript bundler selection with automatic setup
• Add test framework selection (Minitest/RSpec) with automatic RSpec post-action configuration
• Enhance CommandBuilder to support choice-level rails_flag for SELECT questions
• Version bump to 0.3.0
Key Changes
rails_flagsupport allows different flags per choiceTechnical Details
CommandBuilder.process_selectfor per-choice flag configurationTest plan