My Custom template is not creating the folder structure #12570
-
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. |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.