Skip to content
Permalink
Browse files
feat: ensure .gitignore file in generated app (#50)
* 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 4046a690e49f122bec22d56c0b59f518a35f45fb
Showing 2 changed files with 2 additions and 0 deletions.
@@ -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.