generate-react-cli icon indicating copy to clipboard operation
generate-react-cli copied to clipboard

Page creation using existing directory

Open 17110608 opened this issue 3 years ago • 1 comments

Please give the option to create the page in the existing folder path, rather than creating the new folder for it. Configuration: "page": { "customTemplates": { "component": "src/app/templates/page/TemplateName.js" }, "path": "src/app/pages/user", "withStyle": false, "withTest": false, "withStory": false, "withLazy": false }

When we run npx generate-react-cli component Test --type=page it creates the page in src/pages/Test/Test.js I wanted that should not create a new directory for it, because it is a page. It should use existing directory to add the new page which we are created.

17110608 avatar Jul 24 '22 06:07 17110608

I also come across with this issue working with NextJS. Pls help

themse avatar Sep 04 '22 11:09 themse

:tada: This issue has been resolved in version 7.4.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Oct 04 '22 12:10 github-actions[bot]