Skip to content

Commit

Permalink
feat: ensure .gitignore file in generated app (#50)
Browse files Browse the repository at this point in the history
* feat: ensure .gitignore file in generated app

It is impossible to deploy `.gitignore` files via npm packages.
Instead, Cordova templates should include `gitignore` files that will be
renamed to `.gitignore` by `cordova-create@>=3`.

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

* docs: add paragraph about .gitignore files
  • Loading branch information
raphinesse committed Nov 13, 2019
1 parent d58a224 commit 4046a69
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,5 @@ This `package.json` holds *information about the template itself* like its name,
All files inside of `template_src` compose the template from which a user would desire in order to create their project. Everything in this folder is copied over to the created project.

The package.json in `template_src` should be filled with information that describes *the project that would be created from the template*.

If you want to include `.gitignore` files in your template, you have to name them `gitignore` (without a leading dot) instead. They will be renamed to `.gitignore` upon template expansion.
File renamed without changes.

0 comments on commit 4046a69

Please sign in to comment.