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

Automation to generate a standard React component structure #6

Open
msanroman opened this issue Jun 9, 2020 · 1 comment
Open

Automation to generate a standard React component structure #6

msanroman opened this issue Jun 9, 2020 · 1 comment

Comments

@msanroman
Copy link
Member

We could create some sort of generator to create a standard folder structure for a React component based on our folder structure for components in our repos.

It could be something like: npx @bufferapp/create-component MyComponent

And would output:

/MyComponent
  - index.jsx
  - story.jsx
  - styles.jsx
  - test.jsx

With boilerplate code to get started with all this.

@msanroman
Copy link
Member Author

We can take this as an inspiration/starting point: https://github.com/bufferapp/generator-package

@msanroman msanroman changed the title Automation to generate a component Automation to generate a standard React component structure Jun 9, 2020
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