about summary refs log tree commit diff stats
path: root/.gitignore
diff options
context:
space:
mode:
authorAlan Pearce2024-04-24 13:55:09 +0200
committerAlan Pearce2024-04-24 13:55:09 +0200
commitab9997a846fd6d78131d15e607565e91c6693a9f (patch)
treea5fb90202abf9f2fa9a958bc420be3002f34e6ed /.gitignore
parent47a6a02130cb021a6b32423798fbcdde54134d30 (diff)
downloadwebsite-ab9997a846fd6d78131d15e607565e91c6693a9f.tar.lz
website-ab9997a846fd6d78131d15e607565e91c6693a9f.tar.zst
website-ab9997a846fd6d78131d15e607565e91c6693a9f.zip
update .gitignore to use golang-based allowlist
Diffstat (limited to '.gitignore')
-rw-r--r--.gitignore195
1 files changed, 24 insertions, 171 deletions
diff --git a/.gitignore b/.gitignore
index bb1ec91..2932e47 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,178 +1,31 @@
-# Based on https://raw.githubusercontent.com/github/gitignore/main/Node.gitignore
+# Allowlisting gitignore template for GO projects prevents us
+# from adding various unwanted local files, such as generated
+# files, developer configurations or IDE-specific files etc.
+#
+# Recommended: Go.AllowList.gitignore
 
-# Logs
+# Ignore everything
+*
 
-logs
-_.log
-npm-debug.log_
-yarn-debug.log*
-yarn-error.log*
-lerna-debug.log*
-.pnpm-debug.log*
+# But not these files...
+!.gitignore
 
-# Diagnostic reports (https://nodejs.org/api/report.html)
+!*.go
+!go.sum
+!go.mod
 
-report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
+!README.md
+!LICENSE
 
-# Runtime data
+!.envrc
+!justfile
+!*.nix
+!*.toml
+!/flake.lock
 
-pids
-_.pid
-_.seed
-\*.pid.lock
+!/content/**/*.md
+!/static/**/*
+!/templates/*
 
-# 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/
-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.development.local
-.env.test.local
-.env.production.local
-.env.local
-
-# parcel-bundler cache (https://parceljs.org/)
-
-.cache
-.parcel-cache
-
-# Next.js build output
-
-.next
-out
-
-# Nuxt.js build / generate output
-
-.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
-
-# public
-
-# vuepress build output
-
-.vuepress/dist
-
-# vuepress v2.x temp and cache directory
-
-.temp
-.cache
-
-# Docusaurus cache and generated files
-
-.docusaurus
-
-# Serverless directories
-
-.serverless/
-
-# FuseBox cache
-
-.fusebox/
-
-# DynamoDB Local files
-
-.dynamodb/
-
-# TernJS port file
-
-.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.\*
-/.direnv/
-/website
-/.compressstamp
-/.formatstamp
-/server
-/result
-
-# Local Netlify folder
-.netlify
+# ...even if they are in subdirectories
+!*/