connorshea / vglist

A video game library tracking web app built in Rails and powered by Wikidata.

Home Page:https://vglist.co

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a Rake task to generate the GraphQL schema and generate types in vglist-frontend

connorshea opened this issue · comments

It should essentially automate the steps from the vglist-frontend README. We can just assume vglist-frontend is a sister directory to vglist.

- In your copy of the vglist Rails app, run bundle exec rake graphql:schema:dump to generate a dump of the GraphQL schema.
- Copy the newly-generated schema.graphql file to the vglist-frontend directory, probably with cp schema.graphql ../vglist-frontend.
- In vglist-frontend, run yarn run generate to regenerate the GraphQL types.