1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-28 00:17:12 +01:00

chore: add gitignores to frontend and website subdirectories (#7336)

This PR is a follow up to #7333. It appears that the `.gitignore` file
in the root of the repository is not ignoring the yarn files in the
`/frontend` and `/website` directories.

This PR adds those.

Because the patterns contain slashes, they're interpreted as being
relative to the root directory, as mentioned the description of the
[gitignore format](https://git-scm.com/docs/gitignore#_description) in
the official git docs:

> If there is a separator at the beginning or middle (or both) of the
pattern, then the pattern is relative to the directory level of the
particular .gitignore file itself. Otherwise the pattern may also match
at any level below the .gitignore level.
This commit is contained in:
Thomas Heartman 2024-06-10 14:39:14 +02:00 committed by GitHub
parent 9fb6c6f910
commit 58d6365b4f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 18 additions and 0 deletions

9
frontend/.gitignore vendored
View File

@ -53,3 +53,12 @@ cypress/videos/*
cypress/downloads/* cypress/downloads/*
cypress/screenshots/* cypress/screenshots/*
.env.local .env.local
# Yarn (https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored)
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions

9
website/.gitignore vendored
View File

@ -23,3 +23,12 @@ yarn-error.log*
docs/reference/api/**/sidebar.js docs/reference/api/**/sidebar.js
*.api.mdx *.api.mdx
*.tag.mdx *.tag.mdx
# Yarn (https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored)
.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions