-
-
Notifications
You must be signed in to change notification settings - Fork 674
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
CLI tool #66
Comments
Will it generate typescript definition files like graphql-code-generator or apollo-codegen? |
Typescript definition files of what? All the schema is defined by code, for all your client queries you can use |
Hello! I've invested a bit of time to figure out which libraries and tools people are using out there in order to create a solid and cross-platform CLI. Basically, this is the packages stack:
If you think that I can help somehow, just let me know I'll be happy to work on the CLI or other stuff. You can find a very basic example that I did last night: https://github.com/useless-stuff/lakitu/blob/feature/cli/src/lakitu.js Do you have any Slack channel for this project? |
Thanks for the research about tools for creating the CLI 😉 I will definitely take a look at them when I start working on this, for now I have to think and collect CLI feature ideas. There is gitter for questions and discussions not related to issues, mostly due to nice github integration: |
Another idea : add the ability to export the graphql schema from classes. |
Right, it might be an option. It's just calling |
i saw similar comments in #81 regarding i think a decent solution might be to expose the
i suppose you could argue that despite it's size this could still really just be it's own separate NPM module-- but it does seem like something most users of type-graphql will require (assuming they are writing their own clients). if you're interested in a PR it's straight forward / isolated enough that i'd be comfortable giving it a shot. |
There are two ways of how to make CLI works:
Thanks for your suggestion, I will take it into account in the future when the base CLI core will be ready - I will provide some docs how to add custom plugins/commands in own project or as a PR to the main repository. |
Are there any updates about this? I would like to give some help, maybe starting proposing a prototype |
This comment has been minimized.
This comment has been minimized.
I am not very experienced with building CLIs but I'd be happy to help any way I can |
I am thinking about creating a CLI tool - its features, capabilities and usefulness. Few ideas are in my head right now:
Basic:
init
command to create base configured app skeleton from boilerplate repoinit
command with more detailed config (folder per type/feature, etc.)Advanced:
schema.gql
file with SDL💬 Other proposals:
exporting the graphql schema from classes (@omatrot)done in Emit schema definition file #170The text was updated successfully, but these errors were encountered: