Skip to content

Commit 84eac6e

Browse files
6543techknowlogick
andauthored
Add make targed generate-license & generate-gitignore + Update (#12682)
* Add make targed generate-license & generate-gitignore * Update Gitignores & Licenses Co-authored-by: techknowlogick <techknowlogick@gitea.io>
1 parent 3ecd030 commit 84eac6e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+8773
-78
lines changed

Makefile

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ help:
170170
@echo " - fomantic build fomantic files"
171171
@echo " - generate run \"go generate\""
172172
@echo " - fmt format the Go code"
173+
@echo " - generate-license update license files"
174+
@echo " - generate-gitignore update gitignore files"
173175
@echo " - generate-swagger generate the swagger spec from code comments"
174176
@echo " - swagger-validate check if the swagger spec is valid"
175177
@echo " - golangci-lint run golangci-lint linter"
@@ -668,6 +670,15 @@ update-translations:
668670
mv ./translations/*.ini ./options/locale/
669671
rmdir ./translations
670672

673+
.PHONY: generate-license
674+
generate-license:
675+
GO111MODULE=on $(GO) run build/generate-licenses.go
676+
677+
.PHONY: generate-gitignore
678+
generate-gitignore:
679+
GO111MODULE=on $(GO) run build/generate-gitignores.go
680+
681+
671682
.PHONY: generate-images
672683
generate-images:
673684
npm install --no-save --no-package-lock xmldom fabric imagemin-zopfli

options/gitignore/Android

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,6 @@ lint/generated/
8383
lint/outputs/
8484
lint/tmp/
8585
# lint/reports/
86+
87+
# Android Profiling
88+
*.hprof

options/gitignore/Autotools

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Makefile.in
66
/py-compile
77
/test-driver
88
/ylwrap
9+
.deps/
10+
.dirstamp
911

1012
# http://www.gnu.org/software/autoconf
1113

options/gitignore/Concrete5

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,21 @@
1+
# ignore the error log and .htaccess and others
2+
error_log
3+
.htaccess
4+
5+
# concrete5 5.6 specific
6+
17
config/site.php
28
files/cache/*
39
files/tmp/*
4-
.htaccess
10+
11+
# concrete5 5.7 specific
12+
13+
# ignore everything but the index.html
14+
/application/files/*
15+
!/application/files/index.html
16+
17+
# ignore updates folder
18+
/updates/*
19+
20+
# ignore sitemap.xml
21+
/sitemap.xml

options/gitignore/Coq

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,13 @@ lia.cache
3131
nia.cache
3232
nlia.cache
3333
nra.cache
34+
35+
# generated timing files
36+
*.timing.diff
37+
*.v.after-timing
38+
*.v.before-timing
39+
*.v.timing
40+
time-of-build-after.log
41+
time-of-build-before.log
42+
time-of-build-both.log
43+
time-of-build-pretty.log

options/gitignore/Dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,6 @@ doc/api/
1919
*.js_
2020
*.js.deps
2121
*.js.map
22+
23+
.flutter-plugins
24+
.flutter-plugins-dependencies

options/gitignore/Drupal

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,25 +23,25 @@
2323

2424
# Ignore drupal core (if not versioning drupal sources)
2525
/core
26+
/vendor
2627
/modules/README.txt
2728
/profiles/README.txt
29+
/themes/README.txt
2830
/sites/README.txt
2931
/sites/example.sites.php
3032
/sites/example.settings.local.php
3133
/sites/development.services.yml
32-
/themes/README.txt
33-
/vendor
3434
/.csslintrc
3535
/.editorconfig
3636
/.eslintignore
3737
/.eslintrc.json
3838
/.gitattributes
39+
/.ht.router.php
3940
/.htaccess
4041
/autoload.php
41-
/composer.json
42-
/composer.lock
4342
/example.gitignore
4443
/index.php
44+
/INSTALL.txt
4545
/LICENSE.txt
4646
/README.txt
4747
/robots.txt

options/gitignore/Eclipse

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,7 @@ local.properties
5454
.cache-main
5555
.scala_dependencies
5656
.worksheet
57+
58+
# Uncomment this line if you wish to ignore the project description file.
59+
# Typically, this file would be tracked if it contains build/dependency configurations:
60+
#.project

options/gitignore/Godot

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
21
# Godot-specific ignores
32
.import/
43
export.cfg
54
export_presets.cfg
65

6+
# Imported translations (automatically generated from CSV files)
7+
*.translation
8+
79
# Mono-specific ignores
810
.mono/
911
data_*/

options/gitignore/Gradle

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.gradle
2-
/build/
2+
**/build/
3+
!src/**/build/
34

45
# Ignore Gradle GUI config
56
gradle-app.setting

options/gitignore/JENKINS_HOME

Lines changed: 33 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,50 @@
1-
#Learn more about Jenkins and JENKINS_HOME directory for which this file is intended.
1+
# Learn more about Jenkins and JENKINS_HOME directory for which this file is
2+
# intended.
3+
#
24
# http://jenkins-ci.org/
35
# https://wiki.jenkins-ci.org/display/JENKINS/Administering+Jenkins
6+
#
7+
# Note: secret.key is purposefully not tracked by git. This should be backed up
8+
# separately because configs may contain secrets which were encrypted using the
9+
# secret.key. To back up secrets use 'tar -czf /tmp/secrets.tgz secret*' and
10+
# save the file separate from your repository. If you want secrets backed up
11+
# with configuration, then see the bottom of this file for an example.
412

5-
#ignore all JENKINS_HOME except jobs directory, root xml config, and .gitignore file
13+
# Ignore all JENKINS_HOME except jobs directory, root xml config, and
14+
# .gitignore file.
615
/*
716
!/jobs
817
!/.gitignore
918
!/*.xml
1019

11-
#ignore all files in jobs subdirectories except for folders
12-
#note: git doesn't track folders, only file content
20+
# Ignore all files in jobs subdirectories except for folders.
21+
# Note: git doesn't track folders, only file content.
1322
jobs/**
1423
!jobs/**/
1524

16-
#uncomment the following line to save next build numbers with config
25+
# Uncomment the following line to save next build numbers with config.
26+
1727
#!jobs/**/nextBuildNumber
1828

19-
#exclude only config.xml files in repository subdirectories
29+
# For performance reasons, we want to ignore builds in Jenkins jobs because it
30+
# contains many tiny files on large installations. This can impact git
31+
# performance when running even basic commands like 'git status'.
32+
builds
33+
indexing
34+
35+
# Exclude only config.xml files in repository subdirectories.
2036
!config.xml
2137

22-
#don't track workspaces (when users build on the master)
38+
# Don't track workspaces (when users build on the master).
2339
jobs/**/*workspace
2440

25-
#as a result only settings and job config.xml files in JENKINS_HOME will be tracked by git
41+
# Security warning: If secrets are included with your configuration, then an
42+
# adversary will be able to decrypt all encrypted secrets within Jenkins
43+
# config. Including secrets is a bad practice, but the example is included in
44+
# case someone still wants it for convenience. Uncomment the following line to
45+
# include secrets for decryption with repository configuration in Git.
46+
47+
#!/secret*
48+
49+
# As a result, only Jenkins settings and job config.xml files in JENKINS_HOME
50+
# will be tracked by git.

options/gitignore/JetBrains

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and WebStorm
1+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
22
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
33

44
# User-specific stuff

options/gitignore/Jigsaw

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# gitignore template for Jigsaw Static Site Generator
2+
#
3+
# website - https://jigsaw.tighten.co
4+
5+
# Ignore build folder
6+
build_*

options/gitignore/KiCad

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
*.bak
77
*.bck
88
*.kicad_pcb-bak
9+
*.kicad_sch-bak
10+
*.kicad_prl
911
*.sch-bak
1012
*~
1113
_autosave-*

options/gitignore/Metals

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Generated Metals (Scala Language Server) files
2+
# Reference: https://scalameta.org/metals/
3+
.metals/
4+
.bloop/
5+
project/metals.sbt

options/gitignore/Node

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ build/Release
4141
node_modules/
4242
jspm_packages/
4343

44-
# TypeScript v1 declaration files
45-
typings/
44+
# Snowpack dependency directory (https://snowpack.dev/)
45+
web_modules/
4646

4747
# TypeScript cache
4848
*.tsbuildinfo
@@ -74,9 +74,11 @@ typings/
7474

7575
# parcel-bundler cache (https://parceljs.org/)
7676
.cache
77+
.parcel-cache
7778

7879
# Next.js build output
7980
.next
81+
out
8082

8183
# Nuxt.js build / generate output
8284
.nuxt
@@ -105,3 +107,10 @@ dist
105107

106108
# Stores VSCode versions used for testing VSCode extensions
107109
.vscode-test
110+
111+
# yarn v2
112+
.yarn/cache
113+
.yarn/unplugged
114+
.yarn/build-state.yml
115+
.yarn/install-state.gz
116+
.pnp.*

0 commit comments

Comments
 (0)