anephenix / rcg

React Component Generator
0 stars 0 forks source link

Create ./src/components folder if it does not yet exist #40

Closed paulbjensen closed 2 years ago

paulbjensen commented 2 years ago

If you try and run this command on a repo without a ./src/components folder existing yet:

npx rcg Form

It will fail because there isn't a ./src/components folder in existence yet.

It would be good if it could detect the existence of the folder first and create it, or better, just do the equivalent of mkdir -p when creating the folder for the component.

paulbjensen commented 2 years ago

Added in 0.0.10