forked from loafle/openapi-generator-original
feat(typescript): generate .gitattributes file (#19698)
* feat(typescript): generate `.gitattributes` file * sample generation * highlight the gitattributes mustache template * highlight the gitattributes mustache template * Revert "highlight the gitattributes mustache template" This reverts commit9511997983. * highlight the gitattributes mustache template * Revert "highlight the gitattributes mustache template" This reverts commit0f67ec2e4f. * Revert "highlight the gitattributes mustache template" This reverts commit1f68b42368.
This commit is contained in:
@@ -140,6 +140,7 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
|
||||
supportModelPropertyNaming(CodegenConstants.MODEL_PROPERTY_NAMING_TYPE.camelCase);
|
||||
|
||||
// Git
|
||||
supportingFiles.add(new SupportingFile(".gitattributes.mustache", "", ".gitattributes"));
|
||||
supportingFiles.add(new SupportingFile(".gitignore.mustache", "", ".gitignore"));
|
||||
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
||||
|
||||
|
||||
8
modules/openapi-generator/src/main/resources/typescript/.gitattributes.mustache
vendored
Normal file
8
modules/openapi-generator/src/main/resources/typescript/.gitattributes.mustache
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
8
samples/client/others/typescript/builds/array-of-lists/.gitattributes
generated
vendored
Normal file
8
samples/client/others/typescript/builds/array-of-lists/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
DefaultApi.md
|
||||
README.md
|
||||
|
||||
8
samples/client/others/typescript/builds/with-unique-items/.gitattributes
generated
vendored
Normal file
8
samples/client/others/typescript/builds/with-unique-items/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
DefaultApi.md
|
||||
README.md
|
||||
|
||||
8
samples/client/others/typescript/encode-decode/build/.gitattributes
generated
vendored
Normal file
8
samples/client/others/typescript/encode-decode/build/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
DefaultApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/browser/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/browser/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/composed-schemas/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/composed-schemas/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
DefaultApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/default/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/default/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/deno/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/deno/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
StoreApi.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/deno_object_params/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/deno_object_params/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
StoreApi.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/explode-query/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/explode-query/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
AnotherFakeApi.md
|
||||
DefaultApi.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/inversify/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/inversify/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/jquery/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/jquery/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/nullable-enum/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/nullable-enum/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
DefaultApi.md
|
||||
README.md
|
||||
|
||||
8
samples/openapi3/client/petstore/typescript/builds/object_params/.gitattributes
generated
vendored
Normal file
8
samples/openapi3/client/petstore/typescript/builds/object_params/.gitattributes
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
**/* linguist-generated
|
||||
*.md linguist-documentation
|
||||
|
||||
.gitattributes text
|
||||
.gitattributes export-ignore
|
||||
|
||||
.gitignore text
|
||||
.gitignore export-ignore
|
||||
@@ -1,3 +1,4 @@
|
||||
.gitattributes
|
||||
.gitignore
|
||||
PetApi.md
|
||||
README.md
|
||||
|
||||
Reference in New Issue
Block a user