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

Add generators for components etc #12

Open
chadfurman opened this issue Sep 26, 2017 · 0 comments
Open

Add generators for components etc #12

chadfurman opened this issue Sep 26, 2017 · 0 comments

Comments

@chadfurman
Copy link
Owner

There should be a command to allow you to quickly create a table, function, schema, type, component, mutation, or route.

any migration file lists out other migrations and lets you check off depencies (similar to yarn upgrade-interactive), and then adds a migration of the form _<_optional> to the plan

Components generate the folder, the js file (along with a basic component boilerplate), the css file, and a basic Jest snapshot test

routes generate the route file, optionally add the file to routes.js, generate the view file similar to the component, and prompt for a root query for the route (or generating a commented out root query example and mentioning that the user must change it)

Generating a mutation creates the file in shared/relay/mutations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant