Skip to content
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

Personalized configuration reference generator #176

Merged
merged 24 commits into from
Feb 8, 2023

Conversation

benjie
Copy link
Member

@benjie benjie commented Feb 7, 2023

This brings the graphile command into the fold, and introduces

graphile config options

(Better name desired!)

A command which outputs all of the options that are available to be used in your config file, based on the plugins and presets that you have imported. Relies heavily on TypeScript, so will only understand plugins/presets that correctly perform the declaration merging we recommend.

Example graphile config options output: https://gist.github.com/benjie/43143d21c985e9b47eb6204a109516e4

graphile config print

Resolves your graphile.config.ts (or similar) file and pretty-prints the result to aid with understanding and debugging. This will likely receive a lot of enhancements over time, but right now it's quite simple.

Example graphile config print output:

image (1)

@benjie benjie force-pushed the experimental-config-documentor branch from 11f8d4c to 0aa577f Compare February 8, 2023 10:49
@benjie benjie merged commit df9650c into planning Feb 8, 2023
@benjie benjie deleted the experimental-config-documentor branch February 8, 2023 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant