From a657e8fdbcc29787aefedba69388ff647becc6fc Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Tue, 21 May 2024 16:53:47 +0200 Subject: [PATCH 1/3] fix: add tsbuildinfo to gitignore --- src/cli/commands/plugin/init/files/gitIgnore.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/cli/commands/plugin/init/files/gitIgnore.ts b/src/cli/commands/plugin/init/files/gitIgnore.ts index 9068890..914caf6 100644 --- a/src/cli/commands/plugin/init/files/gitIgnore.ts +++ b/src/cli/commands/plugin/init/files/gitIgnore.ts @@ -28,7 +28,10 @@ const gitIgnoreFile: TemplateFile = { yarn-error.log* # local env files - .env + .env + + # ts build cache + .tsbuildinfo `, }; From 965a023b91444d7b92125deaa9187666363f0178 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Tue, 21 May 2024 16:59:43 +0200 Subject: [PATCH 2/3] chore: add changeset --- .changeset/six-toes-tie.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/six-toes-tie.md diff --git a/.changeset/six-toes-tie.md b/.changeset/six-toes-tie.md new file mode 100644 index 0000000..88ebae9 --- /dev/null +++ b/.changeset/six-toes-tie.md @@ -0,0 +1,5 @@ +--- +'@strapi/sdk-plugin': patch +--- + +Add .tsbuildinfo to gitignore From 60fa974e5a87f50506ff1c3117ee5957199f700e Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Tue, 21 May 2024 17:30:30 +0200 Subject: [PATCH 3/3] enhancement: improve gitignore --- .../commands/plugin/init/files/gitIgnore.ts | 147 +++++++++++++++--- 1 file changed, 129 insertions(+), 18 deletions(-) diff --git a/src/cli/commands/plugin/init/files/gitIgnore.ts b/src/cli/commands/plugin/init/files/gitIgnore.ts index 914caf6..6951b7d 100644 --- a/src/cli/commands/plugin/init/files/gitIgnore.ts +++ b/src/cli/commands/plugin/init/files/gitIgnore.ts @@ -7,31 +7,142 @@ const gitIgnoreFile: TemplateFile = { contents: outdent` # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - # dependencies - node_modules - .pnp - .pnp.js + ############################ + # OS X + ############################ - # testing - coverage + .DS_Store + .AppleDouble + .LSOverride + Icon + .Spotlight-V100 + .Trashes + ._* - # production - dist - # misc - .DS_Store - *.pem + ############################ + # Linux + ############################ - # debug - npm-debug.log* - yarn-debug.log* - yarn-error.log* + *~ + + + ############################ + # Windows + ############################ + + Thumbs.db + ehthumbs.db + Desktop.ini + $RECYCLE.BIN/ + *.cab + *.msi + *.msm + *.msp + + + ############################ + # Packages + ############################ + + *.7z + *.csv + *.dat + *.dmg + *.gz + *.iso + *.jar + *.rar + *.tar + *.zip + *.com + *.class + *.dll + *.exe + *.o + *.seed + *.so + *.swo + *.swp + *.swn + *.swm + *.out + *.pid - # local env files - .env - # ts build cache + ############################ + # Logs and databases + ############################ + + .tmp + *.log + *.sql + *.sqlite + *.sqlite3 + + + ############################ + # Misc. + ############################ + + *# + ssl + .idea + nbproject .tsbuildinfo + .eslintcache + .env + + + ############################ + # Strapi + ############################ + + public/uploads/* + !public/uploads/.gitkeep + + + ############################ + # Build + ############################ + + dist + build + + + ############################ + # Node.js + ############################ + + lib-cov + lcov.info + pids + logs + 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 + ############################ + + coverage `, };