apollographql / apollographql/apollo-tooling
Add an option to generate enums as pascal case
- Dominant language
- TypeScript
- Stars
- 3k
- Forks
- 460
- PR merge metrics
- No merged PRs in 30d
Description
We're following the style guide outlined in the typescript book https://basarat.gitbook.io/typescript/styleguide#enum
We want our enums to be pascal case but I do not see an option in the apollo cli to generate our enums in that format. I would like to add an option to the `client:codegen` command to adjust enums to be pascal case rather than shout-case.
Contributor guide
Research direction
Start at the client:codegen command entry point and trace how enums are generated. Done means the command accepts an option that generates Pascal Case enums instead of shout-case, while the existing behavior remains available; check the generated output for both modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- graphql, typescript
- Domain
- cli, tooling
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100