Skip to content

Allow stub overrides #1176

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

Open
LukasWieditz opened this issue Mar 6, 2025 · 1 comment
Open

Allow stub overrides #1176

LukasWieditz opened this issue Mar 6, 2025 · 1 comment

Comments

@LukasWieditz
Copy link

Summary

Laravel make commands allow overwriting the stub file of a make command by supplying a custom template at /stubs/<name>.stub with customized content. It would be lovely if this project could adopt that practice to allow customizing the generated stubs with project-specific code.

The necessary code can be (for example) observed in the ScopeMakeCommand.

@mfn
Copy link
Collaborator

mfn commented Mar 6, 2025

I've no intention working on this and I'm not sure it's worth it.

You use the make commands when you start out with this lib, at which point don't yet know what you need customized.

But once you do and really add a lot of types, and I've seen this, I've a project with 500+ queries/mutations/types/etc, you just copypaste existing classes and it's so much faster anyway 🤷🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants