Skip to content
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

Merged
merged 2 commits into from
Jun 7, 2021

Conversation

thedavidprice
Copy link
Contributor

fixes #2749

Although we confirmed the published create-redwood-app package is missing template/.gitignore, we could not diagnose why it was excluded during npm publish. As a workaround/failsafe, this PR:

  • renames template/.gitignore to template/gitignore
  • adds a rename within the first step of the installation script

@thedavidprice thedavidprice added this to the next-release-patch milestone Jun 7, 2021
@thedavidprice thedavidprice requested a review from dac09 June 7, 2021 17:31
@@ -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'),
Copy link
Contributor

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.templatein the source so its obvious that it wasn't a typo in the filename?

Copy link
Contributor

@dac09 dac09 left a 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!

@cypress
Copy link

cypress bot commented Jun 7, 2021



Test summary

17 0 0 0Flakiness 1


Run details

Project RedwoodJS Framework
Status Passed
Commit 7a2e68d ℹ️
Started Jun 7, 2021 5:43 PM
Ended Jun 7, 2021 5:51 PM
Duration 07:41 💡
OS Linux Ubuntu - 20.04
Browser Chrome 91

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

@dac09 dac09 merged commit 36f2e82 into main Jun 7, 2021
@dac09 dac09 deleted the dsp-update-crwa-gitignore-handling branch June 7, 2021 18:01
@dac09 dac09 restored the dsp-update-crwa-gitignore-handling branch June 7, 2021 18:01
@thedavidprice thedavidprice deleted the dsp-update-crwa-gitignore-handling branch June 7, 2021 18:02
@thedavidprice thedavidprice modified the milestones: next-release, v0.33.2 Jun 7, 2021
thedavidprice added a commit that referenced this pull request Jun 7, 2021
* change handling of crwa/template/.gitignore

* change naming to gitignore.template
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create Redwood App v0.33 missing .gitignore
2 participants