You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by ra...@apache.org on 2019/11/13 00:19:44 UTC

[cordova-app-hello-world] branch master updated: feat: ensure .gitignore file in generated app (#50)

This is an automated email from the ASF dual-hosted git repository.

raphinesse pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-app-hello-world.git


The following commit(s) were added to refs/heads/master by this push:
     new 4046a69  feat: ensure .gitignore file in generated app (#50)
4046a69 is described below

commit 4046a690e49f122bec22d56c0b59f518a35f45fb
Author: Raphael von der GrĂ¼n <ra...@gmail.com>
AuthorDate: Wed Nov 13 01:19:34 2019 +0100

    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
---
 README.md                              | 2 ++
 template_src/{.gitignore => gitignore} | 0
 2 files changed, 2 insertions(+)

diff --git a/README.md b/README.md
index 7aa12f3..e2639d3 100644
--- a/README.md
+++ b/README.md
@@ -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.
diff --git a/template_src/.gitignore b/template_src/gitignore
similarity index 100%
rename from template_src/.gitignore
rename to template_src/gitignore


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org