Skip to content

Commit

Permalink
feat: move configuration to package.json (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg authored May 22, 2020
1 parent 4a9b67f commit 404ae44
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 31 deletions.
30 changes: 0 additions & 30 deletions .tp-config.json

This file was deleted.

32 changes: 31 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,35 @@
"@semantic-release/npm",
"@semantic-release/github"
]
}
},
"generator": {
"supportedProtocols": ["kafka", "amqp", "mqtt"],
"nonRenderableFiles": [
"**/*.jar"
],
"parameters": {
"listenerPollTimeout": {
"description": "Only for Kafka. Timeout to use when polling the consumer.",
"default": 3000,
"required": false
},
"listenerConcurrency": {
"description": "Only for Kafka. Number of threads to run in the listener containers.",
"default": 3,
"required": false
},
"asyncapiFileDir": {
"description": "Parameter of @asyncapi/generator-hooks#createAsyncapiFile, allows to specify where original AsyncAPI file will be stored.",
"default": "src/main/resources/api/",
"required": false
}
},
"generator": ">=0.50.0 <2.0.0",
"filters": [
"@asyncapi/generator-filters"
],
"hooks": {
"@asyncapi/generator-hooks": "createAsyncapiFile"
}
}
}

0 comments on commit 404ae44

Please sign in to comment.