Skip to content

Commit fe54e29

Browse files
authored
feat: Migrate to the new template structure (#5)
* feat: Migrate to the new template structure * Remove unneeded special names * Move filters and hooks and remove unnecessary markdown partials
1 parent 53b30d1 commit fe54e29

32 files changed

+28
-322
lines changed

.hooks/rename-gitignore.js

-9
This file was deleted.

.hooks/rename-package.js

-9
This file was deleted.

.partials/channel.md

-21
This file was deleted.

.partials/channels.md

-7
This file was deleted.

.partials/content.md

-5
This file was deleted.

.partials/info.md

-108
This file was deleted.

.partials/message.md

-63
This file was deleted.

.partials/operation.md

-18
This file was deleted.

.partials/parameters.md

-17
This file was deleted.

.partials/schema-prop.md

-33
This file was deleted.

.partials/schema.md

-25
This file was deleted.

.partials/tags.md

-5
This file was deleted.

README.md

+25-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1-
# {{ asyncapi.info().title() }}
1+
# Node.js template for the AsyncAPI Generator
22

3-
{{ asyncapi.info().description() | safe }}
3+
## Usage
4+
5+
```
6+
ag asyncapi.yaml @asyncapi/nodejs-template -o output -p server=production
7+
```
8+
9+
If you don't have the AsyncAPI Generator installed, you can install it like this:
10+
11+
```
12+
npm install -g @asyncapi/generator
13+
```
14+
15+
## Supported parameters
16+
17+
|Name|Description|Required|Example|
18+
|---|---|---|---|
19+
|server|The server you want to use in the code.|Yes|`production`|
20+
21+
## Supported protocols
22+
23+
* AMQP
24+
* MQTT
25+
* Kafka
26+
* WebSockets

.filters/all.js filters/all.js

File renamed without changes.
File renamed without changes.
File renamed without changes.

.eslintrc template/.eslintrc

File renamed without changes.

__.gitignore template/.gitignore

File renamed without changes.

.npmignore template/.npmignore

File renamed without changes.

Dockerfile template/Dockerfile

File renamed without changes.

template/README.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# {{ asyncapi.info().title() }}
2+
3+
{{ asyncapi.info().description() | safe }}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)