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

In development, add concurrently to start type-generation alongside app boot #1988

Open
damassi opened this issue Apr 24, 2019 · 0 comments
Open
Labels

Comments

@damassi
Copy link
Member

damassi commented Apr 24, 2019

As more code is written / ported to TypeScript, it's important that graphql type-generation is continually running in storybooks (as well as node app) lest things get out of sync as edits to queries are made on the fly.

In Reaction we do it like so (with Relay):

"storybook": "concurrently --raw --kill-others 'yarn relay --watch' 'start-storybook --quiet -s ./public -p 9001'"

In Ervell can be something similar:

"start": "concurrently --raw --kill-others 'yarn generate-types:watch' 'node -r dotenv/config src/index.js'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant