From 97a5a643ec6083442919ef3b964526f694055533 Mon Sep 17 00:00:00 2001 From: Spirit Date: Wed, 25 Jan 2023 13:50:41 +0300 Subject: [PATCH 1/3] Remove Ruby `dotenv` conventions These are considered in the Ruby `dotenv` package not in the node's one --- Node.gitignore | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Node.gitignore b/Node.gitignore index c6bba591..4956d962 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -74,10 +74,6 @@ web_modules/ # dotenv environment variable files .env -.env.development.local -.env.test.local -.env.production.local -.env.local # parcel-bundler cache (https://parceljs.org/) .cache From 31fc17b810901fbe11d6aebc236123fb7b0f68b8 Mon Sep 17 00:00:00 2001 From: Spirit Date: Wed, 25 Jan 2023 14:12:30 +0300 Subject: [PATCH 2/3] Re-add `.env.*` It's not recommended to have multiple `.env` files in the same environment. But it's safer to ignore it just in case. --- Node.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/Node.gitignore b/Node.gitignore index 4956d962..ea9653f1 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -74,6 +74,7 @@ web_modules/ # dotenv environment variable files .env +.env.* # parcel-bundler cache (https://parceljs.org/) .cache From a749c0ebf71cec92c43663be31a8e98f5842cd5f Mon Sep 17 00:00:00 2001 From: Spirit Date: Wed, 25 Jan 2023 14:36:04 +0300 Subject: [PATCH 3/3] Unignore `.env.example` https://github.com/github/gitignore/commit/b236e1717b90f1755af76900f5387bfa20636de3 --- Node.gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/Node.gitignore b/Node.gitignore index ea9653f1..e8b54b7f 100644 --- a/Node.gitignore +++ b/Node.gitignore @@ -75,6 +75,7 @@ web_modules/ # dotenv environment variable files .env .env.* +!.env.example # parcel-bundler cache (https://parceljs.org/) .cache