-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Change handling of crwa/template/.gitignore #2752
Conversation
@@ -102,6 +102,11 @@ const createProjectTasks = ({ newAppDir }) => { | |||
fs.ensureDirSync(path.dirname(newAppDir)) | |||
} | |||
fs.copySync(templateDir, newAppDir) | |||
// .gitignore is renamed here to force file inclusion during publishing | |||
fs.rename( | |||
path.join(newAppDir, 'gitignore'), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What do you think of naming it gitignore.template
in the source so its obvious that it wasn't a typo in the filename?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion, not very important. but LGTM!
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
* change handling of crwa/template/.gitignore * change naming to gitignore.template
fixes #2749
Although we confirmed the published create-redwood-app package is missing
template/.gitignore
, we could not diagnose why it was excluded duringnpm publish
. As a workaround/failsafe, this PR:template/.gitignore
totemplate/gitignore