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

Include schema file in build output #17

Closed
kbrandwijk opened this issue Dec 23, 2017 · 4 comments
Closed

Include schema file in build output #17

kbrandwijk opened this issue Dec 23, 2017 · 4 comments

Comments

@kbrandwijk
Copy link
Member

kbrandwijk commented Dec 23, 2017

Currently, the schema file is read in the index file, and injected by babel. The .graphql file itself is not included in the build. In order to generate compile-time bindings when using a datasource, the schema file itself is needed. Can this be included in the build output by default?

@jlengstorf
Copy link
Member

That should be simple enough; we'd just need to add cpy-cli and add a step to the package.json build process to copy .graphql files.

This would be a great first contribution for someone. hint hint wink nudge nudge 😄

@kbrandwijk
Copy link
Member Author

Or second...

@jlengstorf
Copy link
Member

I wasn't talking about you, @kbrandwijk. :)

@kbrandwijk
Copy link
Member Author

Oops ^^ Aaaand... it's done...

jlengstorf pushed a commit that referenced this issue Dec 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants