Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant