Improve .gitignore

This commit is contained in:
Jan Bader 2021-11-29 22:08:33 +00:00
parent 8e8c653fc9
commit 01e634333a
2 changed files with 97 additions and 23 deletions

103
.gitignore vendored
View File

@ -1,31 +1,88 @@
# ---> Go # From https://stackoverflow.com/questions/5711120/gitignore-binary-files-that-have-no-extension
# Compiled Object files, Static and Dynamic libs (Shared Objects) # Ignore all
*.o *
*.a
*.so
# Folders # Unignore all with extensions
_obj !*.*
_test
# Architecture specific extensions/prefixes # Unignore all dirs
*.[568vq] !*/
[568vq].out
*.cgo1.go
*.cgo2.c
_cgo_defun.c
_cgo_gotypes.go
_cgo_export.*
_testmain.go # Created by https://www.toptal.com/developers/gitignore/api/visualstudiocode,sublimetext,go
# Edit at https://www.toptal.com/developers/gitignore?templates=visualstudiocode,sublimetext,go
### Go ###
# Binaries for programs and plugins
*.exe *.exe
*.test *.exe~
*.prof *.dll
*.so
*.dylib
# Test binary, built with `go test -c`
*.test
# Output of the go coverage tool, specifically when used with LiteIDE
*.out
# Dependency directories (remove the comment below to include it)
# vendor/
### Go Patch ###
/vendor/
/Godeps/
### SublimeText ###
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache
# Workspace files are user-specific
*.sublime-workspace *.sublime-workspace
.vscode/
*~ # Project files should be checked into the repository, unless a significant
config.json # proportion of contributors will probably not be using Sublime Text
build/ # *.sublime-project
# SFTP configuration file
sftp-config.json
sftp-config-alt*.json
# Package control specific files
Package Control.last-run
Package Control.ca-list
Package Control.ca-bundle
Package Control.system-ca-bundle
Package Control.cache/
Package Control.ca-certs/
Package Control.merged-ca-bundle
Package Control.user-ca-bundle
oscrypto-ca-bundle.crt
bh_unicode_properties.cache
# Sublime-github package stores a github token in this file
# https://packagecontrol.io/packages/sublime-github
GitHub.sublime-settings
### VisualStudioCode ###
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace
# Local History for Visual Studio Code
.history/
### VisualStudioCode Patch ###
# Ignore all local history of files
.history
.ionide
# Support for Project snippet scope
!.vscode/*.code-snippets
# End of https://www.toptal.com/developers/gitignore/api/visualstudiocode,sublimetext,go

17
.vscode/tasks.json vendored Normal file
View File

@ -0,0 +1,17 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "earthly +run",
"type": "shell",
"command": "earthly +run",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}