Skip to content

Commit

Permalink
feat!: added 600+ templates for *.ignore files
Browse files Browse the repository at this point in the history
  • Loading branch information
neptship committed Dec 13, 2023
1 parent 01a2d81 commit daf79d0
Show file tree
Hide file tree
Showing 571 changed files with 13,534 additions and 71 deletions.
18 changes: 3 additions & 15 deletions cmd/add.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,26 +21,14 @@ var addCommand = &cobra.Command{
log.Fatal("Error:", err)
}
}
count := 1
if _, err = os.Stat("templates/other/" + args[1] + ".txt"); err != nil {
pathTemplateFile := "templates/" + args[1] + ".gitignore"
if _, err = os.Stat(pathTemplateFile); err != nil {
if os.IsNotExist(err) {
if _, err = os.Stat("templates/languages/" + args[1] + ".txt"); err != nil {
if os.IsNotExist(err) {
log.Fatal("The template does not exist")
}

}
count += 1
log.Fatal("The template does not exist")
} else {
log.Fatal("Error:", err)
}
}
var pathTemplateFile string
if count == 1 {
pathTemplateFile = "templates/other/" + args[1] + ".txt"
} else {
pathTemplateFile = "templates/languages/" + args[1] + ".txt"
}
templateFile, err := os.ReadFile(pathTemplateFile)
if err != nil {
log.Fatal("Error reading the file")
Expand Down
24 changes: 24 additions & 0 deletions templates/1C-Bitrix.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# core
/bitrix/

# uploaded files
/upload/

# other files
test.php
*.zip
*.gzip
*.gz
*.tgz
*.tar
*.gz.[0-9]
*.sql
*.log
*.mp3
*.exe
*.db
*.csv
*.xml
*.psd
*.[oa]
*~
6 changes: 6 additions & 0 deletions templates/1c.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 1C external data processors on unmanaged formes

**/Form/**/form
src/**/und/*
src/**/maps.txt
src/**/renames.txt
41 changes: 41 additions & 0 deletions templates/a-frame.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.DS_Store
*.sw[mnop]

# Logs
logs
*.log
npm-debug.log*

# 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

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules
jspm_packages

# Optional npm cache directory
.npm

# Optional REPL history
.node_repl_history
18 changes: 18 additions & 0 deletions templates/actionscript.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Build and Release Folders
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/

# Other files and folders
.settings/

# Executables
*.swf
*.air
*.ipa
*.apk

# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.
5 changes: 5 additions & 0 deletions templates/ada.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Object file
*.o

# Ada Library Information
*.ali
6 changes: 6 additions & 0 deletions templates/adobe.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Adobe Source Files
*.psd
*.ai
*.indd
*.prproj
*.aep
4 changes: 4 additions & 0 deletions templates/advancedinstaller.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Advanced Installer caches and default build output
*-cache/
*-SetupFiles/
Prerequisites/
31 changes: 31 additions & 0 deletions templates/adventuregamestudio.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# Built things
_Debug/
Compiled/

# AudioCache can be rebuilt from sources
AudioCache/

# Lockfile
_OpenInEditor.lock

# User settings
Game.agf.user
*.crm.user

# Backups
Game.agf.bak
backup_acsprset.spr

# Memory dumps
*.dmp

# Temporary files
# temporarily created during sprite or room background compression
~aclzw.tmp
# temporary, main game data, before getting packed into exe
game28.dta
# temporary build of the game before being moved to Compiled/ folder
*.exe

# Log files
warnings.log
2 changes: 2 additions & 0 deletions templates/agda.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.agdai
MAlonzo/**
11 changes: 11 additions & 0 deletions templates/al.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/
*.app
.snapshots/*
60 changes: 60 additions & 0 deletions templates/alteraquartusii.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
##list taken from http://www.alterawiki.com/wiki/Version_Control (01.10.2015)

######### Quartus II source files

# project files:
### project_name.qpf Quartus II project file
### project_name.qsf Quartus constraint file (lists the hardware constraints defined for a project, from the used chip and pinout to timing constraints)
### project_name.qws Quartus Window Settings ? (the configuration of the Quartus gui for the project, may be omitted)

# top level source files:
### project_name.bdf Block diagram / Schematic file (top level schematic file, there may be many nested files)
### project_name.vhd VHDL file (top level VHDL file)
### project_name.v Verilog file (top level Verilog file)

# component source files:
### component_name.bsf Block Symbol file (component symbol file)
### component_name.vhd VHDL file (top level VHDL file)
### component_name.v Verilog file (top level Verilog file)

# SOPC builder project source files (SOPC builder creates many VHDL or Verilog files, that you do not need to store)
### sopc_project_name.ptf the list and configuration of components selected in the SOPC gui
### sopc_project_name.bsf Block Symbol file (SOPC component symbol file, especially if you modified it)

# Board Description (if you created your own board, the list is incomplete!)
### board_name/class.ptf

# software source files:
### tbd

######## Quartus II binary files

# hardware binary files
### project_name.sof SRAM Object File

# software binary files
### tbd

/*
!/*.gitignore
##
!*.qpf
!*.qsf
!*.qws
##
!*.bdf
!*.vhd
!*.v
##
!*.ptf
!*.bsf
##
!**/class.ptf
##
!*.tbd
##
!*.sof
##
## tbd

!*.tcl
18 changes: 18 additions & 0 deletions templates/altium.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Previews Folders
**/__Previews/

# History Folders
**/History/*

# Project Logs
Project\ Logs*/

# Project Outputs
Project\ Outputs*/

# Auto-conversion notices
*.PcbDoc.htm

# Access lock file for dbLib sources
**/*.ldb

15 changes: 15 additions & 0 deletions templates/amplify.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# AWS Amplify
amplify/\#current-cloud-backend
amplify/.config/local-*
amplify/mock-data
amplify/backend/amplify-meta.json
amplify/backend/awscloudformation
build/
dist/
node_modules/
aws-exports.js
awsconfiguration.json
amplifyconfiguration.json
amplify-build-config.json
amplify-gradle-config.json
amplifyxc.config
33 changes: 33 additions & 0 deletions templates/android.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Log/OS Files
*.log

# Android Studio generated files and folders
captures/
.externalNativeBuild/
.cxx/
*.apk
output.json

# IntelliJ
*.iml
.idea/
misc.xml
deploymentTargetDropDown.xml
render.experimental.xml

# Keystore files
*.jks
*.keystore

# Google Services (e.g. APIs or Firebase)
google-services.json

# Android Profiling
*.hprof
Loading

0 comments on commit daf79d0

Please sign in to comment.