Skip to content
This repository was archived by the owner on May 9, 2025. It is now read-only.

Commit 8943146

Browse files
committed
Rename GraphQL .gitignore template
The .gitignore file is unable to load via classpath resource from the graphql node server resource directory (for unknown reasons). Before this change, the missing template would fail silently. A .gitignore file may exist in other directories and load as expected. Added a default .gitignore to _common as a fallback so as not to break any custom generators which may also be failing silently.
1 parent 9b046c2 commit 8943146

File tree

3 files changed

+75
-1
lines changed

3 files changed

+75
-1
lines changed

modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/GraphQLNodeJSExpressServerCodegen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public void processOpts() {
114114
supportingFiles.add(new SupportingFile("schema.graphql.mustache", supportFolder, "schema.graphql"));
115115

116116
// General stuff
117-
supportingFiles.add(new SupportingFile(".gitignore", supportFolder, ".gitignore"));
117+
supportingFiles.add(new SupportingFile("gitignore", supportFolder, ".gitignore"));
118118
supportingFiles.add(new SupportingFile("README.mustache", supportFolder, "README.md"));
119119
supportingFiles.add(new SupportingFile("package.json.mustache", supportFolder, "package.json"));
120120
supportingFiles.add(new SupportingFile("server.js", supportFolder, "server.js"));
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
2+
# Created by https://www.gitignore.io/api/osx,linux,windows
3+
# Edit at https://www.gitignore.io/?templates=osx,linux,windows
4+
5+
### Linux ###
6+
*~
7+
8+
# temporary files which can be created if a process still has a handle open of a deleted file
9+
.fuse_hidden*
10+
11+
# KDE directory preferences
12+
.directory
13+
14+
# Linux trash folder which might appear on any partition or disk
15+
.Trash-*
16+
17+
# .nfs files are created when an open file is removed but is still being accessed
18+
.nfs*
19+
20+
### OSX ###
21+
# General
22+
.DS_Store
23+
.AppleDouble
24+
.LSOverride
25+
26+
# Icon must end with two \r
27+
Icon
28+
29+
# Thumbnails
30+
._*
31+
32+
# Files that might appear in the root of a volume
33+
.DocumentRevisions-V100
34+
.fseventsd
35+
.Spotlight-V100
36+
.TemporaryItems
37+
.Trashes
38+
.VolumeIcon.icns
39+
.com.apple.timemachine.donotpresent
40+
41+
# Directories potentially created on remote AFP share
42+
.AppleDB
43+
.AppleDesktop
44+
Network Trash Folder
45+
Temporary Items
46+
.apdisk
47+
48+
### Windows ###
49+
# Windows thumbnail cache files
50+
Thumbs.db
51+
Thumbs.db:encryptable
52+
ehthumbs.db
53+
ehthumbs_vista.db
54+
55+
# Dump file
56+
*.stackdump
57+
58+
# Folder config file
59+
[Dd]esktop.ini
60+
61+
# Recycle Bin used on file shares
62+
$RECYCLE.BIN/
63+
64+
# Windows Installer files
65+
*.cab
66+
*.msi
67+
*.msix
68+
*.msm
69+
*.msp
70+
71+
# Windows shortcuts
72+
*.lnk
73+
74+
# End of https://www.gitignore.io/api/osx,linux,windows

0 commit comments

Comments
 (0)