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

Expose way to override isGeneratedFile function via language plugin. #2810

Closed
wants to merge 7 commits into from

Conversation

zth
Copy link
Contributor

@zth zth commented Jul 31, 2019

This PR lets language plugins override isGeneratedFile. My use case is emitting ReasonML types, where the generated files need to be called SomeModule_graphql.re rather than SomeModule.graphql.re, since ReasonML does not accept . in the file name other than for the extension.

Copy link
Contributor

@sibelius sibelius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it makes sense

@zth
Copy link
Contributor Author

zth commented Aug 27, 2019

Anyone had time to look at this?

@zth
Copy link
Contributor Author

zth commented Sep 23, 2019

I've updated this PR to also pass the isGeneratedFile function to deleteExtraFiles in order to prevent deleting files marked as generated.

cc @jstejada @kassens anything I can do to help move this forward? Explain exactly why I need it etc?

Copy link
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@alunyov has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@facebook-github-bot
Copy link
Contributor

@alunyov merged this pull request in 984d5ef.

jstejada pushed a commit that referenced this pull request Feb 13, 2020
…2810)

Summary:
This PR lets language plugins override `isGeneratedFile`. My use case is emitting ReasonML types, where the generated files need to be called `SomeModule_graphql.re` rather than `SomeModule.graphql.re`, since ReasonML does not accept `.` in the file name other than for the extension.
Pull Request resolved: #2810

Reviewed By: kassens

Differential Revision: D19834002

Pulled By: alunyov

fbshipit-source-id: 34e71eb20425ab5dd699481e988ed4a9662ceab5
@zth zth deleted the expose-is-generated-file branch December 21, 2021 17:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants