From 1da9aed891ae623855f1ad28a62e412fdb1cf8aa Mon Sep 17 00:00:00 2001 From: John O'Keefe Date: Sun, 25 Jan 2026 00:15:59 -0500 Subject: [PATCH] refactor: clean up .gitignore for Go web app project - Remove unnecessary Node.js and build tool entries - Keep only relevant entries for Go web application - Preserve Bruno collection, static assets, and Go template files - Add clarifying comments for project-specific entries --- .gitignore | 235 +++++++++++++++++------------------------------------ 1 file changed, 73 insertions(+), 162 deletions(-) diff --git a/.gitignore b/.gitignore index 79f4018..af93a10 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ # ---> Go -# If you prefer the allow list template instead of the deny list, see community template: +# If you prefer to allow list template instead of deny list, see community template: # https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore # # Binaries for programs and plugins @@ -12,7 +12,7 @@ # Test binary, built with `go test -c` *.test -# Output of the go coverage tool, specifically when used with LiteIDE +# Output of go coverage tool, specifically when used with LiteIDE *.out # Dependency directories (remove the comment below to include it) @@ -24,186 +24,97 @@ go.work.sum # env file .env - -# ---> Redis -# Ignore redis binary dump (dump.rdb) files - -*.rdb - -# ---> Node -# Logs -logs -.cache -*.log -npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json - -# Runtime data -pids -*.pid -*.seed -*.pid.lock - -# Directory for instrumented libs generated by jscoverage/JSCover -lib-cov - -# Coverage directory used by tools like istanbul -coverage -*.lcov - -# nyc test coverage -.nyc_output - -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) -.grunt - -# Bower dependency directory (https://bower.io/) -bower_components - -# node-waf configuration -.lock-wscript - -# Compiled binary addons (https://nodejs.org/api/addons.html) -build/Release - -# Dependency directories -node_modules/ -bower_components/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo - -# Optional npm cache directory -.npm - -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - -# Optional REPL history -.node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env .env.* !.env.example +# ---> Node (not applicable to Go web app) +# Logs +# .cache +# *.log +# npm-debug.log* +# yarn-debug.log* +# lerna-debug.log* +# .pnpm-debug.log* +# Diagnostic reports +# report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json +# Runtime data +# pids +# *.pid +# *.seed +# *.pid.lock +# Directory for instrumented libs generated by jscoverage/JSCover +# lib-cov +# Coverage directory used by tools like istanbul +# coverage +# *.lcov +# nyc test coverage +# .nyc_output +# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +# .grunt +# Bower dependency directory (https://bower.io/) +# bower_components +# jspm_packages/ +# node-waf configuration +# .lock-wscript +# Compiled binary addons (https://node.js.org/api/addons.html) +# build/Release +# Dependency directories +# node_modules/ +# bower_components/ +# jspm_packages/ +# Snowpack dependency directory (https://snowpack.dev/) +# web_modules/ +# TypeScript cache +# *.tsbuildinfo +# Optional npm cache directory +# .npm # parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Svelte Build outputs -dist/ -build/ -/.svelte-kit/ -/package/ -/output - +# .cache +# .parcel-cache +# Svelte build outputs (Go templates use different pattern) +# dist/ +# build/ +# .svelte-kit/ +# /package/ +# /output # Next.js build output -.next -out - +# .next +# out # Nuxt.js build / generate output -.nuxt -dist - +# .nuxt +# dist # Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support +# .gatsby # public - # vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp -.cache - -# vitepress build output -**/.vitepress/dist - -# vitepress cache directory -**/.vitepress/cache - +# .vuepress/dist +# .vitepress/build output +# **/.vitepress/dist +# .vitepress/cache directory # Docusaurus cache and generated files -.docusaurus - +# .docusaurus # Serverless directories -.serverless/ - +# .serverless/ # FuseBox cache -.fusebox/ - +# .fusebox/ # DynamoDB Local files -.dynamodb/ - +# .dynamodb/ # TernJS port file -.tern-port - +# .tern-port # Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* - -# OS & IDE -.DS_Store -.idea/ -.vscode/ -*.tgz -tmp - -# Testing -coverage/ -.nyc_output - -# Deployment -.vercel -.netlify - -# Bruno environment folder -#environment/ - +# .vscode-test +# nyc test coverage +# coverage +# .nyc_output +# ---> Bruno (keep relevant parts) # Bruno collection file bruno/collection.bru - -# Generated static assets (SvelteKit build output) +# Generated static assets cmd/server/static/ - -# Built binaries +# Built binaries (keep for now - remove if desired) main server - -# Generated templ files +# Generated templ files (keep) templates/*_templ.go uploads/