Skip to content

Commit

Permalink
Again updated default .gitignore: removed !.env.client. (#2090)
Browse files Browse the repository at this point in the history
* Again updated default .gitignore: removed !.env.client.

* Update web/docs/project/env-vars.md
  • Loading branch information
Martinsos authored Jun 10, 2024
1 parent ea0a0d9 commit 1f75746
Show file tree
Hide file tree
Showing 15 changed files with 62 additions and 92 deletions.
10 changes: 4 additions & 6 deletions examples/hackathon-submissions/.gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
.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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

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

Expand Down
10 changes: 4 additions & 6 deletions examples/streaming/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
10 changes: 4 additions & 6 deletions examples/thoughts/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
11 changes: 4 additions & 7 deletions examples/todo-typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

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

11 changes: 4 additions & 7 deletions examples/tutorials/TodoApp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

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

10 changes: 4 additions & 6 deletions examples/tutorials/TodoAppTs/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
10 changes: 4 additions & 6 deletions examples/waspello/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
10 changes: 4 additions & 6 deletions examples/waspleau/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
10 changes: 4 additions & 6 deletions examples/websockets-realtime-voting/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
12 changes: 5 additions & 7 deletions waspc/data/Cli/templates/skeleton/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
!.env.*.example
12 changes: 5 additions & 7 deletions waspc/examples/crud-testing/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
!.env.*.example
12 changes: 5 additions & 7 deletions waspc/examples/pg-vector-example/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
!.env.*.example
12 changes: 5 additions & 7 deletions waspc/examples/todo-typescript/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
!.env.*.example
10 changes: 4 additions & 6 deletions waspc/examples/todoApp/.gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +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 .env.client as it can't contain any secrets.
!.env.client
# Don't ignore example env files.

# Don't ignore example dotenv files.
!.env.example
!.env.*.example
4 changes: 2 additions & 2 deletions web/docs/project/env-vars.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ In the root of your Wasp project you can create two distinct files:
REACT_APP_SOME_VAR_NAME=somevalue
```
`.env.server` should not be committed to version control as it can contain secrets and is therefore by default already ignored in the `.gitignore` file that comes with a new Wasp app.
On the other hand, `.env.client` can be committed as it must not contain any secrets.
`.env.server` should not be committed to version control as it can contain secrets, while `.env.client` can be versioned as it must not contain any secrets.
By default, in the `.gitignore` file that comes with a new Wasp app, we ignore all dotenv files.
:::info Dotenv files
`dotenv` files are a popular method for storing configuration: to learn more about them in general, check out the [dotenv npm package](https://www.npmjs.com/package/dotenv).
Expand Down

0 comments on commit 1f75746

Please sign in to comment.