gramps-graphql / data-source-base

Boilerplate for creating a GrAMPS-compatible data source.
https://gramps.js.org/data-source/data-source-overview/
52 stars 8 forks source link

Include schema file in build output #17

Closed kbrandwijk closed 6 years ago

kbrandwijk commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Or second...

jlengstorf commented 6 years ago

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

kbrandwijk commented 6 years ago

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