sumup-oss / foundry

A toolkit for building JavaScript & TypeScript applications.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Plop] Missing index file

connor-baer opened this issue · comments

When generating the files for a new React component with plop, the index.js is not generated. I couldn't decide where to add this.

WDYT @felixjung? I'm happy to make a PR for this :)

Thanks, I noticed this myself and haven't gotten to fixing it, yet. I would want to make this the default for React components. So, you'd need to add an action to that array that the files are being reduced into. I think I'd run reduce over the files concatenated with the default index file. Make sense?