Skip to content

Change handling of crwa/template/.gitignore#2752

Merged
dac09 merged 2 commits intomainfrom
dsp-update-crwa-gitignore-handling
Jun 7, 2021
Merged

Change handling of crwa/template/.gitignore#2752
dac09 merged 2 commits intomainfrom
dsp-update-crwa-gitignore-handling

Conversation

@thedavidprice
Copy link
Copy Markdown
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
fs.copySync(templateDir, newAppDir)
// .gitignore is renamed here to force file inclusion during publishing
fs.rename(
path.join(newAppDir, 'gitignore'),
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown

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