[TS] Added outputGlobalTypes option to specify path for global types#546
[TS] Added outputGlobalTypes option to specify path for global types#546martijnwalraven merged 4 commits intoapollographql:masterfrom
Conversation
|
This is great! I think it would also be nice to be able to set the filename ( |
|
@williamboman Thats exactly what this option is for, the path includes the filename. For example: |
|
Oh shit, my bad! |
|
@danilobuerger thanks for submitting this! Could you update https://github.com/apollographql/apollo-cli/blob/master/CHANGELOG.md with what this PR is doing? |
| description: | ||
| 'By default, TypeScript/Flow will put each generated file in a directory next to its source file using the value of the "output" as the directory name. Set "outputFlat" to put all generated files in the directory relative to the current working directory defined by "output".' | ||
| }), | ||
| outputGlobalTypes: flags.string({ |
There was a problem hiding this comment.
Not doing a full review, but I think that outputGlobalTypes is a strange name (and reads like a boolean) for a string that is meant to specify a file location to write global type information to. Perhaps something like globalTypesFilePath?
There was a problem hiding this comment.
The intention was that it is aligned with the other output options (output and outputFlat) for easier grouping if they all begin with output.... But I really don't care what the param is named :-)
There was a problem hiding this comment.
I agree outputGlobalTypes feels a bit weird as a flag name. Maybe globalTypesFile?
|
@zionts In this repo the Changelog is done on Publish. See https://github.com/apollographql/apollo-cli/commits/master/CHANGELOG.md not during PRs. |
|
Will this key work for swift target |
No description provided.