From 7d42be83b02bea27396554fb29295c970fbb1982 Mon Sep 17 00:00:00 2001 From: Ben Irvin Date: Wed, 22 May 2024 09:39:39 +0200 Subject: [PATCH] fix: add tsbuildinfo to gitignore (#18) * fix: add tsbuildinfo to gitignore * chore: add changeset * enhancement: improve gitignore --- .changeset/six-toes-tie.md | 5 + .../commands/plugin/init/files/gitIgnore.ts | 146 ++++++++++++++++-- 2 files changed, 135 insertions(+), 16 deletions(-) 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 diff --git a/src/cli/commands/plugin/init/files/gitIgnore.ts b/src/cli/commands/plugin/init/files/gitIgnore.ts index 9068890..6951b7d 100644 --- a/src/cli/commands/plugin/init/files/gitIgnore.ts +++ b/src/cli/commands/plugin/init/files/gitIgnore.ts @@ -7,28 +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 + ._* + + + ############################ + # Linux + ############################ + + *~ + + + ############################ + # 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 + + + ############################ + # Logs and databases + ############################ + + .tmp + *.log + *.sql + *.sqlite + *.sqlite3 + + + ############################ + # Misc. + ############################ - # production + *# + ssl + .idea + nbproject + .tsbuildinfo + .eslintcache + .env + + + ############################ + # Strapi + ############################ + + public/uploads/* + !public/uploads/.gitkeep + + + ############################ + # Build + ############################ + dist + build - # misc - .DS_Store - *.pem + + ############################ + # 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 - # debug - npm-debug.log* - yarn-debug.log* - yarn-error.log* - # local env files - .env + ############################ + # Tests + ############################ + + coverage `, };