My Custom template is not creating the folder structure #12570
Answered
by
jfhandfield
jfhandfield
asked this question in
Q&A
|
I've created my own custom template with my own folder structure. For some reason when testing my template with the npx create-react-app [myapp] --template file:/[folder where my template is] everything is created correctly. But when packaging it and doing the npx create-react-app [myapp] --template [my cutom template] all I have at the end is a bunch of file in the src folder and nothing else. What am I doing wrong? This is a screenshot of the before and after. |
Answered by
jfhandfield
Jul 5, 2022
Replies: 1 comment
|
I figured that I need to put something in the folder before packaging it since git don't create empty folders. Don't know if there is a work around to this but I had to create an empty file in each of the folders. |
0 replies
Answer selected by
jfhandfield
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


I figured that I need to put something in the folder before packaging it since git don't create empty folders. Don't know if there is a work around to this but I had to create an empty file in each of the folders.