Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: introduce monorepo with filters package included #1155

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,4 @@ test/temp/integrationTestResult
test/test-project/package-lock.json
test/test-project/verdaccio/storage/
test/test-project/storage/
.turbo
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ There is a large number of templates that are ready to use and are officially su
<!-- templates list is validated with GitHub Actions do not remove list markers -->
<!-- TEMPLATES-LIST:START -->

Template Name | Description | Source code
---|---|---
`@asyncapi/nodejs-template` | Generates Nodejs service that uses Hermes package | [click here](https://github.com/asyncapi/nodejs-template)
`@asyncapi/nodejs-ws-template` | Generates Nodejs service that supports WebSockets protocol only | [click here](https://github.com/asyncapi/nodejs-ws-template)
`@asyncapi/java-template` | Generates Java JMS application | [click here](https://github.com/asyncapi/java-template)
`@asyncapi/java-spring-template` | Generates Java Spring service | [click here](https://github.com/asyncapi/java-spring-template)
`@asyncapi/java-spring-cloud-stream-template` | Generates Java Spring Cloud Stream service | [click here](https://github.com/asyncapi/java-spring-cloud-stream-template)
`@asyncapi/python-paho-template` | Generates Python service that uses Paho library | [click here](https://github.com/asyncapi/python-paho-template)
`@asyncapi/html-template` | Generates HTML documentation site | [click here](https://github.com/asyncapi/html-template)
`@asyncapi/markdown-template` | Generates documentation in Markdown file | [click here](https://github.com/asyncapi/markdown-template)
`@asyncapi/ts-nats-template` | Generates TypeScript NATS client | [click here](https://github.com/asyncapi/ts-nats-template/)
`@asyncapi/go-watermill-template` | Generates Go client using Watermill | [click here](https://github.com/asyncapi/go-watermill-template)
`@asyncapi/dotnet-nats-template` | Generates .NET C# client using NATS | [click here](https://github.com/asyncapi/dotnet-nats-template)
`@asyncapi/php-template` | Generates PHP client using RabbitMQ | [click here](https://github.com/asyncapi/php-template)
`@asyncapi/dotnet-rabbitmq-template` | Generates .NET C# client using RabbitMQ | [click here](https://github.com/asyncapi/dotnet-rabbitmq-template)
| Template Name | Description | Source code |
| --------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------------------- |
| `@asyncapi/nodejs-template` | Generates Nodejs service that uses Hermes package | [click here](https://github.com/asyncapi/nodejs-template) |
| `@asyncapi/nodejs-ws-template` | Generates Nodejs service that supports WebSockets protocol only | [click here](https://github.com/asyncapi/nodejs-ws-template) |
| `@asyncapi/java-template` | Generates Java JMS application | [click here](https://github.com/asyncapi/java-template) |
| `@asyncapi/java-spring-template` | Generates Java Spring service | [click here](https://github.com/asyncapi/java-spring-template) |
| `@asyncapi/java-spring-cloud-stream-template` | Generates Java Spring Cloud Stream service | [click here](https://github.com/asyncapi/java-spring-cloud-stream-template) |
| `@asyncapi/python-paho-template` | Generates Python service that uses Paho library | [click here](https://github.com/asyncapi/python-paho-template) |
| `@asyncapi/html-template` | Generates HTML documentation site | [click here](https://github.com/asyncapi/html-template) |
| `@asyncapi/markdown-template` | Generates documentation in Markdown file | [click here](https://github.com/asyncapi/markdown-template) |
| `@asyncapi/ts-nats-template` | Generates TypeScript NATS client | [click here](https://github.com/asyncapi/ts-nats-template/) |
| `@asyncapi/go-watermill-template` | Generates Go client using Watermill | [click here](https://github.com/asyncapi/go-watermill-template) |
| `@asyncapi/dotnet-nats-template` | Generates .NET C# client using NATS | [click here](https://github.com/asyncapi/dotnet-nats-template) |
| `@asyncapi/php-template` | Generates PHP client using RabbitMQ | [click here](https://github.com/asyncapi/php-template) |
| `@asyncapi/dotnet-rabbitmq-template` | Generates .NET C# client using RabbitMQ | [click here](https://github.com/asyncapi/dotnet-rabbitmq-template) |

<!-- TEMPLATES-LIST:END -->

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
20 changes: 20 additions & 0 deletions apps/generator/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.DS_Store
node_modules
npm-debug.log
output
.vscode
######################
# Intellij
######################
.idea/
*.iml
*.iws
*.ipr
*.ids
*.orig
out/
coverage
test/temp/integrationTestResult
test/test-project/package-lock.json
test/test-project/verdaccio/storage/
test/test-project/storage/
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 5 additions & 0 deletions apps/generator/.turbo/turbo-docs.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
npm WARN ignoring workspace config at /Users/betalectic/explorestuff/generator/apps/generator/.npmrc

> @asyncapi/[email protected] docs
> jsdoc2md --partial docs/jsdoc2md-handlebars/custom-sig-name.hbs docs/jsdoc2md-handlebars/main.hbs docs/jsdoc2md-handlebars/docs.hbs docs/jsdoc2md-handlebars/header.hbs docs/jsdoc2md-handlebars/defaultvalue.hbs docs/jsdoc2md-handlebars/link.hbs docs/jsdoc2md-handlebars/params-table.hbs --files lib/generator.js > docs/api.md

5 changes: 5 additions & 0 deletions apps/generator/.turbo/turbo-test$colon$cleanup.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
npm WARN ignoring workspace config at /Users/betalectic/explorestuff/generator/apps/generator/.npmrc

> @asyncapi/[email protected] test:cleanup
> rimraf "test/temp"

12 changes: 12 additions & 0 deletions apps/generator/.turbo/turbo-test$colon$cli.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
npm WARN ignoring workspace config at /Users/betalectic/explorestuff/generator/apps/generator/.npmrc

> @asyncapi/[email protected] test:cli
> node cli.js ./test/docs/dummy.yml @asyncapi/html-template -o test/output --force-write --debug && test -e test/output/index.html

Template sources taken from /Users/betalectic/explorestuff/generator/apps/generator/node_modules/@asyncapi/html-template.
Version of used template is 0.18.0.


Done! ✨
Check out your shiny new generated files at /Users/betalectic/explorestuff/generator/apps/generator/test/output.

84 changes: 84 additions & 0 deletions apps/generator/.turbo/turbo-test$colon$integration.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
npm WARN ignoring workspace config at /Users/betalectic/explorestuff/generator/apps/generator/.npmrc

> @asyncapi/[email protected] test:integration
> npm run test:cleanup && jest --testPathPattern=integration --modulePathIgnorePatterns='./__mocks__'

npm WARN ignoring workspace config at /Users/betalectic/explorestuff/generator/apps/generator/.npmrc

> @asyncapi/[email protected] test:cleanup
> rimraf "test/temp"

Determining test suites to run...

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js

 RUNS  test/integration.test.js
 PASS  ]8;;file:///Users/betalectic/explorestuff/generator/apps/generator/test/integration.test.jstest/integration.test.js]8;; (23.109s)

 RUNS  test/integration.test.js
 Integration testing generateFromFile() to make sure the result of the generation is not changend comparing to snapshot

 RUNS  test/integration.test.js
 ✓ generated using Nunjucks template (1755ms)

 RUNS  test/integration.test.js
 ✓ generate using React template (1924ms)

 RUNS  test/integration.test.js
 ✓ generate json based api with referenced JSON Schema (17960ms)

 RUNS  test/integration.test.js


 RUNS  test/integration.test.js

 RUNS  test/integration.test.js
Test Suites: 1 passed, 1 total
Tests: 3 passed, 3 total
Snapshots: 3 passed, 3 total
Time: 23.13s
Ran all test suites matching /integration/i.
Expand Down
Loading
Loading