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 commit 95119979833c2835f004db27805506b76785385a. * highlight the gitattributes mustache template * Revert "highlight the gitattributes mustache template" This reverts commit 0f67ec2e4fec30fad209fae20ace97ea7f9d4eea. * Revert "highlight the gitattributes mustache template" This reverts commit 1f68b42368c959bc63dff76db791e4149280283a.
This commit is contained in:
parent
1b247e75a9
commit
5e2af7203a
@ -140,6 +140,7 @@ public class TypeScriptClientCodegen extends AbstractTypeScriptClientCodegen imp
|
|||||||
supportModelPropertyNaming(CodegenConstants.MODEL_PROPERTY_NAMING_TYPE.camelCase);
|
supportModelPropertyNaming(CodegenConstants.MODEL_PROPERTY_NAMING_TYPE.camelCase);
|
||||||
|
|
||||||
// Git
|
// Git
|
||||||
|
supportingFiles.add(new SupportingFile(".gitattributes.mustache", "", ".gitattributes"));
|
||||||
supportingFiles.add(new SupportingFile(".gitignore.mustache", "", ".gitignore"));
|
supportingFiles.add(new SupportingFile(".gitignore.mustache", "", ".gitignore"));
|
||||||
supportingFiles.add(new SupportingFile("git_push.sh.mustache", "", "git_push.sh"));
|
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
|
.gitignore
|
||||||
DefaultApi.md
|
DefaultApi.md
|
||||||
README.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
|
.gitignore
|
||||||
DefaultApi.md
|
DefaultApi.md
|
||||||
README.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
|
.gitignore
|
||||||
DefaultApi.md
|
DefaultApi.md
|
||||||
README.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
README.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
|
.gitignore
|
||||||
DefaultApi.md
|
DefaultApi.md
|
||||||
README.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
README.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
StoreApi.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
StoreApi.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
|
.gitignore
|
||||||
AnotherFakeApi.md
|
AnotherFakeApi.md
|
||||||
DefaultApi.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
README.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
README.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
|
.gitignore
|
||||||
DefaultApi.md
|
DefaultApi.md
|
||||||
README.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
|
.gitignore
|
||||||
PetApi.md
|
PetApi.md
|
||||||
README.md
|
README.md
|
||||||
|
Loading…
x
Reference in New Issue
Block a user