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 `, };