When using npx create-nextron-app, the generated .gitignore file in the root directory is set up in a way that it ignores all directories named app throughout the project. This behavior can lead to unintended ignoring of important files in nested directories that are also named app, particularly in the renderer directory where Next.js projects commonly use an app directory for specific configurations or custom setups.
Expected Behavior
The .gitignore file should be configured to only ignore the app directory at the root of the project, not app directories that are nested within other directories.
Steps to Reproduce
Run the command npx create-nextron-app MY_APP --example with-tailwindcss.
Check the .gitignore file in the root directory.
Notice that the entry for app will cause all directories named app at any level to be ignored, including potentially important ones in the renderer directory for Next.js projects.
Suggested Fix
Change the .gitignore entry from:
app
to:
/app
This change will ensure that only the root app directory is ignored, and not any app directory that might exist in subdirectories, such as those within the renderer directory used by Next.js projects.
This issue can lead to significant confusion and potential data loss if important files are inadvertently ignored by Git. A fix would help ensure that developers do not face issues with version control in their projects.
When using
npx create-nextron-app
, the generated.gitignore
file in the root directory is set up in a way that it ignores all directories namedapp
throughout the project. This behavior can lead to unintended ignoring of important files in nested directories that are also namedapp
, particularly in therenderer
directory where Next.js projects commonly use anapp
directory for specific configurations or custom setups.Expected Behavior
The
.gitignore
file should be configured to only ignore theapp
directory at the root of the project, notapp
directories that are nested within other directories.Steps to Reproduce
npx create-nextron-app MY_APP --example with-tailwindcss
..gitignore
file in the root directory.app
will cause all directories namedapp
at any level to be ignored, including potentially important ones in therenderer
directory for Next.js projects.Suggested Fix
Change the
.gitignore
entry from:to:
This change will ensure that only the root
app
directory is ignored, and not anyapp
directory that might exist in subdirectories, such as those within therenderer
directory used by Next.js projects.This issue can lead to significant confusion and potential data loss if important files are inadvertently ignored by Git. A fix would help ensure that developers do not face issues with version control in their projects.
Thank you for looking into this issue!