HarveyD / react-component-library

A project skeleton to get your very own React Component Library up and running using Rollup, Typescript, SASS + Storybook
https://blog.harveydelaney.com/creating-your-own-react-component-library/
MIT License
790 stars 167 forks source link

Add to index #10

Open jamiehaywood opened 4 years ago

jamiehaywood commented 4 years ago

This automatically adds the new component to index.

MaryamMosstoufi commented 3 years ago

It would be nice to have also the ability to auto detect deleted/removed/renamed components and update the imports in index.

jamiehaywood commented 3 years ago

@MaryamMosstoufi I think that would rely on some sort of VSCode plugin that would listen on updates, probably not within the scope of this library / PR 🙂

MaryamMosstoufi commented 3 years ago

@jamiehaywood you are totally right thinking of it that way the way I stated the suggestion:) So I have structured my project so that components are inside a component folder and was thinking of automating it so that it is always just looking at that directory and looping over it and resetting the imports into index. I might be looking at this the wrong way though.