Skip to content

Commit a51f90e

Browse files
derbergjonaslagoniasyncapi-botmagicmatatjahumcturco
authored
fix: add generator-react-sdk library and release as patch first time under generator monorepo (#1626)
Co-authored-by: Jonas Lagoni <jonas-lt@live.dk> Co-authored-by: Lukasz Gornicki <lpgornicki@gmail.com> Co-authored-by: asyncapi-bot <61865014+asyncapi-bot@users.noreply.github.com> Co-authored-by: Maciej Urbańczyk <urbanczyk.maciej.95@gmail.com> Co-authored-by: Missy Turco <60163079+mcturco@users.noreply.github.com> Co-authored-by: Tenshi Codes <116377630+codingtenshi@users.noreply.github.com> Co-authored-by: Mintu Gogoi <127925465+Gmin2@users.noreply.github.com> Co-authored-by: Julian Waller <git@julusian.co.uk> Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
1 parent c3e50b0 commit a51f90e

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+16089
-10264
lines changed

.all-contributorsrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,17 @@
339339
"contributions": [
340340
"test"
341341
]
342+
},
343+
{
344+
"login": "Julusian",
345+
"name": "Julian Waller",
346+
"avatar_url": "https://avatars.githubusercontent.com/u/1327476?v=4",
347+
"profile": "https://github.com/Julusian",
348+
"contributions": [
349+
"bug",
350+
"test",
351+
"code"
352+
]
342353
}
343354
],
344355
"contributorsPerLine": 3,

.changeset/silly-pants-shave.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
"@asyncapi/generator-react-sdk": patch
3+
"@asyncapi/generator": patch
4+
---
5+
6+
Release of `generator-react-sdk` as part of the `generator` monorepo.
7+
8+
With this release the code from https://github.com/asyncapi/generator-react-sdk is considered to be an archive, and all future development will take place in this repository under `/apps/react-sdk`.

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ apps/generator/output/*
33
**/temp/*
44
**/__transpiled/*
55
packages/components/lib/*
6+
**/lib
7+
docs
8+
**/transpiler/__tests__/__transpiled_testfiles
9+
**/transpiler/__tests__/testfiles

.eslintrc

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,12 @@ rules:
111111
react/display-name: off
112112
react/prop-types: off
113113
react/jsx-key: off
114-
react/no-unescaped-entities: off
114+
react/no-unescaped-entities: off
115+
116+
overrides:
117+
- files: "*.spec.js"
118+
rules:
119+
prefer-arrow-callback: 0
120+
sonarjs/no-duplicate-string: 0
121+
security/detect-object-injection: 0
122+
security/detect-non-literal-fs-filename: 0

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
.env.development.local
88
.env.test.local
99
.env.production.local
10-
10+
.vscode
1111
# Testing
1212
coverage
1313

.sonarcloud.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#we need to explicitly exclude them as some are commit to the repo
2-
sonar.exclusions=**/test/**/*,**/*__transpiled/**/*.js,packages/templates/clients/**/*
2+
sonar.exclusions=**/test/**/*,**/*__transpiled/**/*.js,packages/templates/clients/**/*,**/__tests__/**/*
33
#TODO remove packages/templates/clients/**/* when we are more advanced with templates development and the structure of templates is finalized

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ This is a Monorepo managed using [Turborepo](https://turbo.build/) and contains
1010

1111
1. [Nunjucks-filters](apps/nunjucks-filters): This library contains generator filters that can be reused across multiple templates helping to avoid redundant work. These filters are designed specifically for Nunjucks templates and are included by default with the generator, so there's no need to add them to dependencies separately.
1212

13+
1. [React-sdk](apps/react-sdk): AsyncAPI React SDK is a set of components/functions to use React as render engine for the generator. This is the library that undestand components from Generator's templates that are configured to use `react` render engine.
14+
1315
> [!IMPORTANT]
1416
> **Deprecation Notice:** The Nunjucks renderer engine is deprecated and will be removed in future releases. We strongly recommend using the React renderer engine instead. You can find how to migrate from Nunjucks to React in the [migration guide](apps/generator/docs/nunjucks-depreciate.md)
1517

apps/generator/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"homepage": "https://github.com/asyncapi/generator",
4949
"dependencies": {
5050
"@asyncapi/generator-hooks": "*",
51-
"@asyncapi/generator-react-sdk": "^1.1.2",
51+
"@asyncapi/generator-react-sdk": "*",
5252
"@asyncapi/multi-parser": "^2.1.1",
5353
"@asyncapi/nunjucks-filters": "*",
5454
"@asyncapi/parser": "^3.0.14",

apps/generator/test/test-templates/nunjucks-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"dependencies": {
1919
"@asyncapi/generator-react-sdk": "^1.1.2"
2020
}
21-
}
21+
}

apps/generator/test/test-templates/react-template/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"test": "echo \"Error: no test specified\" && exit 1"
77
},
88
"dependencies": {
9-
"@asyncapi/generator-react-sdk": "^1.1.2",
9+
"@asyncapi/generator-react-sdk": "*",
1010
"@asyncapi/generator-components": "1.0.0"
1111
}
1212
}

0 commit comments

Comments
 (0)