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

feat: support .gitignore files in generated app #53

Merged
merged 3 commits into from
Nov 15, 2019

Conversation

raphinesse
Copy link
Contributor

@raphinesse raphinesse commented Nov 11, 2019

Motivation and Context

It is impossible to deploy .gitignore files via npm packages.
Instead, Cordova templates should include gitignore files that we
rename to .gitignore. This PR implements that renaming.

For more details see apache/cordova-discuss#69.

Closes #8, apache/cordova-app-hello-world#30 and apache/cordova-discuss#69.

This bumps the dependency on cordova-app-hello-world to a version that includes apache/cordova-app-hello-world#50.

Description

Rename all gitignore files in the generated app to .gitignore.

Note: Originally we had discussed using the filename _gitignore for the source files but I eventually went with what create-react-app is using in their templates.

Testing

Added an automated test that passes.

Checklist

  • I've run the tests to see all new and existing tests pass
  • I added automated test coverage as appropriate for this change
  • If this Pull Request resolves an issue, I linked to the issue in the text above (and used the correct keyword to close issues using keywords)

@raphinesse raphinesse added this to the 3.0.0 milestone Nov 11, 2019
@project-bot project-bot bot added this to 🐣 New PR / Untriaged in Apache Cordova: Tooling Pull Requests Nov 11, 2019
Apache Cordova: Tooling Pull Requests automation moved this from 🐣 New PR / Untriaged to ✅ Approved, waiting for Merge Nov 11, 2019
@raphinesse raphinesse marked this pull request as ready for review November 14, 2019 19:18
It is impossible to deploy `.gitignore` files via npm packages.
Instead, Cordova templates should include `gitignore` files that we
rename to `.gitignore`. This commit implements that renaming.

For more details see apache/cordova-discuss#69.

Closes apache#8 and cordova-app-hello-world#30
@raphinesse raphinesse merged commit 1d0d67e into apache:master Nov 15, 2019
Apache Cordova: Tooling Pull Requests automation moved this from ✅ Approved, waiting for Merge to 🏆 Merged, waiting for Release Nov 15, 2019
@raphinesse raphinesse deleted the fix-gitignore branch November 15, 2019 14:43
@brodybits
Copy link

brodybits commented Nov 15, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Apache Cordova: Tooling Pull Requests
🏆 Merged, waiting for Release
Development

Successfully merging this pull request may close these issues.

None yet

3 participants