mirror of
https://github.com/wasp-lang/wasp.git
synced 2024-12-24 01:22:24 +03:00
Updated default .gitignore for new Wasp project to be more robust regarding .env files (#1425)
This commit is contained in:
parent
6b77b673a6
commit
179ec45aa9
@ -2,9 +2,6 @@
|
||||
|
||||
## 0.11.3
|
||||
|
||||
### 🐞 Bug fixes
|
||||
- Fixes API types exports for TypeScript users
|
||||
|
||||
### 🎉 [New Feature] Type-safe links
|
||||
|
||||
Wasp now offers a way to link to pages in your app in a type-safe way. This means that you can't accidentally link to a page that doesn't exist, or pass the wrong arguments to a page.
|
||||
@ -48,11 +45,12 @@ import { routes } from '@wasp/router'
|
||||
const linkToTask = routes.TaskRoute({ params: { id: 1 } })
|
||||
```
|
||||
|
||||
## 0.11.2
|
||||
### 🐞 Bug fixes
|
||||
- Fixes API types exports for TypeScript users.
|
||||
- Default .gitignore that comes with new Wasp project (`wasp new`) is now more aggressive when ignoring .env files, ensuring they don't get committed by accident (wrong name, wrong location, ...).
|
||||
|
||||
### 🐞 Bug fixes / 🔧 small improvements
|
||||
- Wasp copied over the `.env.server` instead of `.env.client` to the client app `.env` file. This prevented using the `.env.client` file in the client app.
|
||||
- waspls thought that importing `"@client/file.jsx"` could mean `"@client/file.tsx"`, which could hide some missing import diagnostics and cause go-to definition to jump to the wrong file.
|
||||
|
||||
## 0.11.2
|
||||
|
||||
### 🎉 [New Feature] waspls Code Scaffolding
|
||||
|
||||
@ -80,6 +78,11 @@ export const getTasks: GetTasks<GetTasksInput, GetTasksOutput> = async (args, co
|
||||
}
|
||||
```
|
||||
|
||||
### 🐞 Bug fixes / 🔧 small improvements
|
||||
- Wasp copied over the `.env.server` instead of `.env.client` to the client app `.env` file. This prevented using the `.env.client` file in the client app.
|
||||
- waspls thought that importing `"@client/file.jsx"` could mean `"@client/file.tsx"`, which could hide some missing import diagnostics and cause go-to definition to jump to the wrong file.
|
||||
|
||||
|
||||
## 0.11.1
|
||||
|
||||
### 🎉 [New feature] Prisma client preview flags
|
||||
|
12
waspc/data/Cli/templates/basic/.gitignore
vendored
12
waspc/data/Cli/templates/basic/.gitignore
vendored
@ -1,3 +1,11 @@
|
||||
/.wasp/
|
||||
/.env.server
|
||||
/.env.client
|
||||
|
||||
# We ignore 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.*
|
||||
|
@ -1,7 +1,7 @@
|
||||
app waspBuild {
|
||||
db: { system: PostgreSQL },
|
||||
wasp: {
|
||||
version: "^0.11.2"
|
||||
version: "^0.11.3"
|
||||
},
|
||||
title: "waspBuild"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
app waspCompile {
|
||||
wasp: {
|
||||
version: "^0.11.2"
|
||||
version: "^0.11.3"
|
||||
},
|
||||
title: "waspCompile"
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
app waspComplexTest {
|
||||
db: { system: PostgreSQL },
|
||||
wasp: {
|
||||
version: "^0.11.2"
|
||||
version: "^0.11.3"
|
||||
},
|
||||
auth: {
|
||||
userEntity: User,
|
||||
|
@ -1,7 +1,7 @@
|
||||
app waspJob {
|
||||
db: { system: PostgreSQL },
|
||||
wasp: {
|
||||
version: "^0.11.2"
|
||||
version: "^0.11.3"
|
||||
},
|
||||
title: "waspJob"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
app waspMigrate {
|
||||
wasp: {
|
||||
version: "^0.11.2"
|
||||
version: "^0.11.3"
|
||||
},
|
||||
title: "waspMigrate"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
app waspNew {
|
||||
wasp: {
|
||||
version: "^0.11.2"
|
||||
version: "^0.11.3"
|
||||
},
|
||||
title: "waspNew"
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ cabal-version: 2.4
|
||||
-- Consider using hpack, or maybe even hpack-dhall.
|
||||
|
||||
name: waspc
|
||||
version: 0.11.2
|
||||
version: 0.11.3
|
||||
description: Please see the README on GitHub at <https://github.com/wasp-lang/wasp/waspc#readme>
|
||||
homepage: https://github.com/wasp-lang/wasp/waspc#readme
|
||||
bug-reports: https://github.com/wasp-lang/wasp/issues
|
||||
|
Loading…
Reference in New Issue
Block a user