sharp
sharp copied to clipboard
[console] global generator
todo:
- [ ] fixer les tests (modif de config/sharp.php pas prise en compte en live)
Completed
- [x] Wizard to create a command entity/instance.
- [x] Wizard to create a filter.
- [x] Rename to generator.
- [x] Be exhaustive (only show, etc).
- [x] Entity state.
- [x] Reorder.
- [x] Search for the model or path of the entity with a select-type prompt (a list) rather than an input.
- [x] If possible, add the new entity to the configuration.
- [x] If possible, add commands (entity list, show).
- [x] For a new entity, add a URL link to the Sharp page for live testing.
- [x] Test the generators.
How to use :
php artisan sharp:generator
First idea for the generator tests was to implement a "feature" test: use the wizard to create a new entity and check for 200 ok when visiting the endpoints (list, form, show, etc). But working with orchestra seems to prevent this approach: https://packages.tools/testbench/troubleshooting.html#why-testbench-doesn-t-include-any-of-the-app-classes
https://github.com/orchestral/testbench/issues/184#issuecomment-508964712 https://github.com/livewire/livewire/blob/main/composer.json#L39