ctrlplusb / react-universally

A starter kit for universal react applications.
MIT License
1.7k stars 244 forks source link

NPM script to generate components #455

Closed diegohaz closed 6 years ago

diegohaz commented 7 years ago

Hey, guys.

I'm working on a project that helps developers to generate new components on any project no matter file structure they have.

That being said, I want to know if is it desirable here to have a npm run component script (or something like that) that does the job so I can also test if it fits in this project. :)

birkir commented 7 years ago

I just have a plugin in my editor to create components. I can just select some options like class based or functional component. If it should include styles and then select which one (css,scss,less).

Creates folder and files.

https://github.com/ueno-llc/ueno-atom-menu

diegohaz commented 7 years ago

Finally, I think it's done: https://github.com/diegohaz/generact

image image image

oyeanuj commented 6 years ago

@diegohaz This looks really cool, I'd like to try it out with react-universally. How best do I go about integrating this with my fork to test it out?

diegohaz commented 6 years ago

@oyeanuj Just do this:

npm i -g generact
cd path/to/my/react-universally/app
generact

https://github.com/diegohaz/generact

ctrlplusb commented 6 years ago

For those interested, I have been using this package recently:

https://bitsrc.io/

Super cool 👍