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
This commit is contained in:
+73
-162
@@ -1,5 +1,5 @@
|
|||||||
# ---> Go
|
# ---> 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
|
# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore
|
||||||
#
|
#
|
||||||
# Binaries for programs and plugins
|
# Binaries for programs and plugins
|
||||||
@@ -12,7 +12,7 @@
|
|||||||
# Test binary, built with `go test -c`
|
# Test binary, built with `go test -c`
|
||||||
*.test
|
*.test
|
||||||
|
|
||||||
# Output of the go coverage tool, specifically when used with LiteIDE
|
# Output of go coverage tool, specifically when used with LiteIDE
|
||||||
*.out
|
*.out
|
||||||
|
|
||||||
# Dependency directories (remove the comment below to include it)
|
# Dependency directories (remove the comment below to include it)
|
||||||
@@ -24,186 +24,97 @@ go.work.sum
|
|||||||
|
|
||||||
# env file
|
# env file
|
||||||
.env
|
.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.*
|
||||||
!.env.example
|
!.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/)
|
# parcel-bundler cache (https://parceljs.org/)
|
||||||
.cache
|
# .cache
|
||||||
.parcel-cache
|
# .parcel-cache
|
||||||
|
# Svelte build outputs (Go templates use different pattern)
|
||||||
# Svelte Build outputs
|
# dist/
|
||||||
dist/
|
# build/
|
||||||
build/
|
# .svelte-kit/
|
||||||
/.svelte-kit/
|
# /package/
|
||||||
/package/
|
# /output
|
||||||
/output
|
|
||||||
|
|
||||||
# Next.js build output
|
# Next.js build output
|
||||||
.next
|
# .next
|
||||||
out
|
# out
|
||||||
|
|
||||||
# Nuxt.js build / generate output
|
# Nuxt.js build / generate output
|
||||||
.nuxt
|
# .nuxt
|
||||||
dist
|
# dist
|
||||||
|
|
||||||
# Gatsby files
|
# Gatsby files
|
||||||
.cache/
|
# .gatsby
|
||||||
# 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
|
|
||||||
# public
|
# public
|
||||||
|
|
||||||
# vuepress build output
|
# vuepress build output
|
||||||
.vuepress/dist
|
# .vuepress/dist
|
||||||
|
# .vitepress/build output
|
||||||
# vuepress v2.x temp and cache directory
|
# **/.vitepress/dist
|
||||||
.temp
|
# .vitepress/cache directory
|
||||||
.cache
|
|
||||||
|
|
||||||
# vitepress build output
|
|
||||||
**/.vitepress/dist
|
|
||||||
|
|
||||||
# vitepress cache directory
|
|
||||||
**/.vitepress/cache
|
|
||||||
|
|
||||||
# Docusaurus cache and generated files
|
# Docusaurus cache and generated files
|
||||||
.docusaurus
|
# .docusaurus
|
||||||
|
|
||||||
# Serverless directories
|
# Serverless directories
|
||||||
.serverless/
|
# .serverless/
|
||||||
|
|
||||||
# FuseBox cache
|
# FuseBox cache
|
||||||
.fusebox/
|
# .fusebox/
|
||||||
|
|
||||||
# DynamoDB Local files
|
# DynamoDB Local files
|
||||||
.dynamodb/
|
# .dynamodb/
|
||||||
|
|
||||||
# TernJS port file
|
# TernJS port file
|
||||||
.tern-port
|
# .tern-port
|
||||||
|
|
||||||
# Stores VSCode versions used for testing VSCode extensions
|
# Stores VSCode versions used for testing VSCode extensions
|
||||||
.vscode-test
|
# .vscode-test
|
||||||
|
# nyc test coverage
|
||||||
# yarn v2
|
# coverage
|
||||||
.yarn/cache
|
# .nyc_output
|
||||||
.yarn/unplugged
|
# ---> Bruno (keep relevant parts)
|
||||||
.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/
|
|
||||||
|
|
||||||
# Bruno collection file
|
# Bruno collection file
|
||||||
bruno/collection.bru
|
bruno/collection.bru
|
||||||
|
# Generated static assets
|
||||||
# Generated static assets (SvelteKit build output)
|
|
||||||
cmd/server/static/
|
cmd/server/static/
|
||||||
|
# Built binaries (keep for now - remove if desired)
|
||||||
# Built binaries
|
|
||||||
main
|
main
|
||||||
server
|
server
|
||||||
|
# Generated templ files (keep)
|
||||||
# Generated templ files
|
|
||||||
templates/*_templ.go
|
templates/*_templ.go
|
||||||
|
|
||||||
uploads/
|
uploads/
|
||||||
|
|||||||
Reference in New Issue
Block a user