Allow guideline overriding #219
Merged
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.
What & Why
Some people only have Inertia in part of their project, they don’t want Boost's guidelines recommending to create every new page with Inertia.
They should be able to put a file in
.ai/guidelines/inertia-laravel/core.blade.phpthat we use instead of Boost's.This opens up the door for a lot of customisation.
How I tested
boost:installin a demo project with custom guidelines and verified the guideline files include the overridden files, not the Boost files.This makes sure custom guidelines still work, and overriding Boost guidelines works.
❯ tree .ai .ai └── guidelines ├── enforce-tests.blade.php ├── livewire │ └── 3 │ └── core.blade.php └── tdd.blade.phpNotes/thoughts
.ai/guidelines/in the package too, to match the custom guidelines, so they're the same.