Skip to content

Commit

Permalink
enhancement: improve gitignore in generated projects (#20348)
Browse files Browse the repository at this point in the history
  • Loading branch information
innerdvations committed May 22, 2024
1 parent d687b16 commit 710e683
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,8 @@ packages/generators/app/files/public/
schema.graphql
dist
.nx
.tsbuildinfo
.eslintcache

############################
# Example app
Expand All @@ -126,15 +128,19 @@ front-workspace.code-workspace
.yarnrc

############################
# Yarn
# Package managers
############################

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
yarn-error.log
pnpm-debug.log
npm-debug.log

############################
# Playwright
Expand Down
17 changes: 17 additions & 0 deletions packages/cli/create-strapi-starter/src/resources/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ ssl
nbproject
public/uploads/*
!public/uploads/.gitkeep
.tsbuildinfo
.eslintcache

############################
# Node.js
Expand All @@ -101,6 +103,21 @@ node_modules

coverage

############################
# Package managers
############################

.yarn/*
!.yarn/cache
!.yarn/unplugged
!.yarn/patches
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
yarn-error.log


############################
# Strapi
############################
Expand Down
16 changes: 16 additions & 0 deletions packages/generators/app/src/resources/dot-files/common/gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ ssl
nbproject
public/uploads/*
!public/uploads/.gitkeep
.tsbuildinfo
.eslintcache

############################
# Node.js
Expand All @@ -95,6 +97,20 @@ results
node_modules
.node_history

############################
# Package managers
############################

.yarn/*
!.yarn/cache
!.yarn/unplugged
!.yarn/patches
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.pnp.*
yarn-error.log

############################
# Tests
############################
Expand Down

0 comments on commit 710e683

Please sign in to comment.