-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move the default frontend scaffold into a separate onboarding command #5
Conversation
…`post-create-project-cmd` hook that runs a setup wizard via `tempest/scaffold`
👏 There's so much potential here, and it's so great to see a third-party Tempest package 🎉 We're definitely gonna merge this, but first let's discuss a couple of things. My first question: the scaffold commands should live somewhere within Tempest — I don't know yet where. It could be a separate Next: @aidan-casey wdyt? We've been talking about code generation in general as well. I don't think that should be a blocker for now, but we need to make sure Also: any other templates you had in mind? |
Thanks @brendt 😊
Agree - I prefer to hand it over to tempest mainline so it can live at
I'm happy to keep the scaffold up to date, and honestly if you know a better way of doing it then let me know - I briefly looked at diff/patching packages but found most depended on running
The obvious ones for frontend are:
But I was also picturing some authentication templates but I wasn't sure if you had a vision for that? |
Yeah, that would be nice as well. Still need to figure out how we need to do that, but it's definitely something we should have |
I saw your poll on Discord and tempestphp/tempest-framework#493 so I'll add an authentication UI scaffold that calls the |
Sorry for being silent on this so long. Could you PR your package to |
@brendt shouldn't this be in |
Oh yes, I forgot about that 🫣 Yeah it should go in there: https://github.com/tempestphp/cli (@aidan-casey why did you call that repo |
Likewise! I'm overseas until Thursday so didn't get time to add anything before I left... https://github.com/tempestphp/cli looks like a sample project rather than a package? |
Because is a separate project, not a package. Given that, I followed the convention
It's an actual project. Will be a CLI tool you can install locally or into a project to do various tempest stuff. |
Closing in favor of #9, we might revisit it later because I think there are some interesting ideas in this PR still, but I feel like we need a bit more time using Tempest in practice before locking into a solution |
From Discord the other day:
This PR removes Tailwind from the default
tempest/app
install in favour of a short bit of plain CSS, but adds apost-create-project-cmd
hook to thecomposer.json
file to allow users to reinstall it via a separatetempest/scaffold
package I started throwing together - https://github.com/mattdinthehouse/tempest-scaffoldBecause frontend is such a heated debate I feel it's better to provide some starter kits and ask people what they want
I'm picturing that this
tempest/scaffold
package would eventually have templates for things like Authentication too, similar to Laravel'slaravel/ui
package but baked into thecomposer create-project ...
flow for easier setup