Closed shapkarin closed 5 years ago
I will test soon and merge this. Thanks! 🎉
I run that like:
node ./bin/initialize.js generate component Test That
But if run tests, "should create a parent react component" is failed.
fixed "generate" test 🙂
I don't like that I save empty folder (somebody can think that source there...), but can't generate to the different directories. I also plan to do that at issues #53
I renamed to "test_folder" but still think that all about tests must be in one folder but I found some other at "templates/src"
@rajikaimal what is the "templates/src" folder? I change test and .reactclirc to generate there and then remove generated folder.
templates
folder contains the default react template.
templates
folder contains the default react template.
@rajikaimal but what for src/components inside?
I changed test so it's generate to the "./test_folder/components" folder and then removes it.
but what for src/components inside?
We don't have an src
folder.
Other changes LGTM.
Let's create issues for the other features/patches.
Thanks! 🙇 @shapkarin
First steps for issues #53
Changes: count props, add default config, remove filename postfix