Skip to content

Commit

Permalink
Updated .gitignore to follow latest Wasp defaults.
Browse files Browse the repository at this point in the history
  • Loading branch information
Martinsos committed Jun 8, 2024
1 parent 3f690ba commit 0a100d5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 24 deletions.
27 changes: 8 additions & 19 deletions opensaas-sh/app_diff/.gitignore.diff
Original file line number Diff line number Diff line change
@@ -1,31 +1,20 @@
--- template/app/.gitignore
+++ opensaas-sh/app/.gitignore
@@ -2,16 +2,24 @@
node_modules/
**/.DS_Store
@@ -6,6 +6,17 @@
.env
.env.*

-# We ignore env files recognized and used by Wasp.
+# We ignore sensitive env files recognized and used by Wasp.
.env.server
-.env.client
-
# To be extra safe, we by default ignore any files with `.env` extension in them.
# If this is too agressive for you, consider allowing specific files with `!` operator,
# or modify/delete these two lines.
*.env
*.env.*
-
+# These two we added only because dotenv-vault keeps adding them if it doesn't find them,
+# even though we don't need them. Remove them once dotenv-vault stops doing that.
+.env*
+.flaskenv*
# We don't want to ignore .env example files.
!*.env.*.example
!*.env.example
+
# Don't ignore example dotenv files.
!.env.example
!.env.*.example
+
+# We don't want to ignore .env.client as it doesn't have any secrets.
+!.env.client
+# These are config files for dotenv-vault, so we don't want to ignore them.
+!.env.project
+!.env.vault
+# .env.me is used by dotenv-vault as a personal credential, so we explicitly ignore it.
+.env.me
9 changes: 4 additions & 5 deletions template/app/.gitignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
.wasp/
node_modules/

# We by default ignore any dotenv files to avoid committing any secrets by accident.
# If this is too agressive for you, consider allowing specific files with `!` operator,
# or modify/delete these two lines.
# Ignore all dotenv files by default to prevent accidentally committing any secrets.
# To include specific dotenv files, use the `!` operator or adjust these rules.
.env
.env.*
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example

0 comments on commit 0a100d5

Please sign in to comment.