Skip to content

feat: support .gitignore files in generated app#53

Merged
raphinesse merged 3 commits intoapache:masterfrom
raphinesse:fix-gitignore
Nov 15, 2019
Merged

feat: support .gitignore files in generated app#53
raphinesse merged 3 commits intoapache:masterfrom
raphinesse:fix-gitignore

Conversation

@raphinesse
Copy link
Copy Markdown
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 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
@raphinesse raphinesse deleted the fix-gitignore branch November 15, 2019 14:43
@brody2consult
Copy link
Copy Markdown

brody2consult 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

None yet

Development

Successfully merging this pull request may close these issues.

3 participants