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: add generator plugin for endpoints returning signals #2639

Merged
Merged
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
304516d
feat: add generator plugin for endpoints returning signals
taefi Jul 31, 2024
03f9ed0
Merge branch 'refs/heads/main' into taefi/enable-generator-to-generat…
taefi Aug 1, 2024
ed159ed
feat: add generator plugin for endpoints returning signals
taefi Aug 1, 2024
49dd9f3
include generator-plugin-signals in dev dependencies
taefi Aug 1, 2024
c73f379
include generator-plugin-signals in ITs package.json
taefi Aug 2, 2024
eec4149
Merge branch 'main' into taefi/enable-generator-to-generate-correct-e…
taefi Aug 2, 2024
178b4d6
sync package.json and package-lock.json for npm ci
taefi Aug 2, 2024
1ad2cfa
Merge remote-tracking branch 'origin/taefi/enable-generator-to-genera…
taefi Aug 2, 2024
54efbc5
use generated service instead of service wrapper in Signals IT
taefi Aug 2, 2024
53601bd
remove unused request init import in generated services
taefi Aug 5, 2024
4bcd74a
just exclude init parameter and leave others as is
taefi Aug 6, 2024
7f01d49
apply suggestions from code review
taefi Aug 6, 2024
0d2291e
apply suggestions from code review
taefi Aug 6, 2024
09ebed8
Merge branch 'main' into taefi/enable-generator-to-generate-correct-e…
taefi Aug 6, 2024
de8b1c7
sync package-lock.json and package.json for npm ci
taefi Aug 7, 2024
e43bb37
fix package.json and package-lock.json files
taefi Aug 7, 2024
31b4d77
remove unused find and remove methods from ImportManager.ts
taefi Aug 7, 2024
d790be1
upgrade dependencies to match root package.json
taefi Aug 7, 2024
3812735
fix flaky unit test
taefi Aug 7, 2024
61b182c
apply suggestions from code review
taefi Aug 7, 2024
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,054 changes: 584 additions & 470 deletions package-lock.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ static class PluginsProcessor extends ConfigList.Processor<Plugin> {
new Plugin("@vaadin/hilla-generator-plugin-barrel"),
new Plugin("@vaadin/hilla-generator-plugin-model"),
new Plugin("@vaadin/hilla-generator-plugin-push"),
new Plugin("@vaadin/hilla-generator-plugin-signals"),
new Plugin("@vaadin/hilla-generator-plugin-subtypes"));

PluginsProcessor() {
Expand Down
68 changes: 68 additions & 0 deletions packages/java/tests/csrf-context/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/java/tests/csrf-context/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@vaadin/hilla-generator-plugin-client": "file:../../../ts/generator-plugin-client",
"@vaadin/hilla-generator-plugin-model": "file:../../../ts/generator-plugin-model",
"@vaadin/hilla-generator-plugin-push": "file:../../../ts/generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "file:../../../ts/generator-plugin-signals",
"@vaadin/hilla-generator-plugin-subtypes": "file:../../../ts/generator-plugin-subtypes",
"@vaadin/hilla-generator-utils": "file:../../../ts/generator-utils",
"@vitejs/plugin-react": "4.3.1",
Expand Down Expand Up @@ -73,6 +74,7 @@
"@vaadin/hilla-generator-plugin-client": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-model": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-push": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-signals": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-subtypes": "24.5.0-alpha5",
"@vaadin/hilla-generator-utils": "24.5.0-alpha5",
"@vitejs/plugin-react": "4.3.1",
Expand All @@ -89,7 +91,7 @@
"workbox-core": "7.1.0",
"workbox-precaching": "7.1.0"
},
"hash": "4e5197eb924bb53e5f53c7083cb6a2e68cb30a8855d3318faa307e06fd268d04"
"hash": "51b8d36251c1be71e3520cccf3ae9507a253839d0ed5f85a7be39600062c8b0d"
},
"overrides": {
"@vaadin/common-frontend": "$@vaadin/common-frontend",
Expand All @@ -104,6 +106,7 @@
"@vaadin/hilla-generator-plugin-client": "$@vaadin/hilla-generator-plugin-client",
"@vaadin/hilla-generator-plugin-model": "$@vaadin/hilla-generator-plugin-model",
"@vaadin/hilla-generator-plugin-push": "$@vaadin/hilla-generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "$@vaadin/hilla-generator-plugin-signals",
"@vaadin/hilla-generator-utils": "$@vaadin/hilla-generator-utils",
"@vaadin/router": "$@vaadin/router",
"@vaadin/hilla-lit-form": "$@vaadin/hilla-lit-form",
Expand Down
68 changes: 68 additions & 0 deletions packages/java/tests/csrf/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion packages/java/tests/csrf/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"@vaadin/hilla-generator-plugin-client": "file:../../../ts/generator-plugin-client",
"@vaadin/hilla-generator-plugin-model": "file:../../../ts/generator-plugin-model",
"@vaadin/hilla-generator-plugin-push": "file:../../../ts/generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "file:../../../ts/generator-plugin-signals",
"@vaadin/hilla-generator-plugin-subtypes": "file:../../../ts/generator-plugin-subtypes",
"@vaadin/hilla-generator-utils": "file:../../../ts/generator-utils",
"@vitejs/plugin-react": "4.3.1",
Expand Down Expand Up @@ -73,6 +74,7 @@
"@vaadin/hilla-generator-plugin-client": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-model": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-push": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-signals": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-subtypes": "24.5.0-alpha5",
"@vaadin/hilla-generator-utils": "24.5.0-alpha5",
"@vitejs/plugin-react": "4.3.1",
Expand All @@ -89,7 +91,7 @@
"workbox-core": "7.1.0",
"workbox-precaching": "7.1.0"
},
"hash": "4e5197eb924bb53e5f53c7083cb6a2e68cb30a8855d3318faa307e06fd268d04"
"hash": "51b8d36251c1be71e3520cccf3ae9507a253839d0ed5f85a7be39600062c8b0d"
},
"overrides": {
"@vaadin/common-frontend": "$@vaadin/common-frontend",
Expand All @@ -105,6 +107,7 @@
"@vaadin/hilla-generator-plugin-client": "$@vaadin/hilla-generator-plugin-client",
"@vaadin/hilla-generator-plugin-model": "$@vaadin/hilla-generator-plugin-model",
"@vaadin/hilla-generator-plugin-push": "$@vaadin/hilla-generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "$@vaadin/hilla-generator-plugin-signals",
"@vaadin/hilla-generator-utils": "$@vaadin/hilla-generator-utils",
"@vaadin/hilla-lit-form": "$@vaadin/hilla-lit-form",
"@vaadin/icon": "$@vaadin/icon",
Expand Down
3 changes: 3 additions & 0 deletions packages/java/tests/gradle/single-module-tests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"@vaadin/hilla-generator-plugin-client": "file:../../../../ts/generator-plugin-client",
"@vaadin/hilla-generator-plugin-model": "file:../../../../ts/generator-plugin-model",
"@vaadin/hilla-generator-plugin-push": "file:../../../../ts/generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "file:../../../../ts/generator-plugin-signals",
"@vaadin/hilla-generator-plugin-subtypes": "file:../../../../ts/generator-plugin-subtypes",
"@vaadin/hilla-generator-utils": "file:../../../../ts/generator-utils",
"@vitejs/plugin-react": "4.2.1",
Expand Down Expand Up @@ -71,6 +72,7 @@
"@vaadin/hilla-generator-plugin-model": "$@vaadin/hilla-generator-plugin-model",
"@vaadin/hilla-generator-plugin-barrel": "$@vaadin/hilla-generator-plugin-barrel",
"@vaadin/hilla-generator-plugin-push": "$@vaadin/hilla-generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "$@vaadin/hilla-generator-plugin-signals",
"@vaadin/hilla-generator-core": "$@vaadin/hilla-generator-core",
"@vaadin/hilla-generator-plugin-client": "$@vaadin/hilla-generator-plugin-client",
"@vaadin/hilla-generator-utils": "$@vaadin/hilla-generator-utils",
Expand All @@ -93,6 +95,7 @@
"@vaadin/hilla-generator-plugin-client": "24.4.0-alpha5",
"@vaadin/hilla-generator-plugin-model": "24.4.0-alpha5",
"@vaadin/hilla-generator-plugin-push": "24.4.0-alpha5",
"@vaadin/hilla-generator-plugin-signals": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-subtypes": "24.4.0-alpha5",
"@vaadin/hilla-generator-utils": "24.4.0-alpha5",
"@vaadin/hilla-lit-form": "24.4.0-alpha5",
Expand Down
3 changes: 3 additions & 0 deletions packages/java/tests/gradle/single-module/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
"@vaadin/hilla-generator-plugin-client": "file:../../../../ts/generator-plugin-client",
"@vaadin/hilla-generator-plugin-model": "file:../../../../ts/generator-plugin-model",
"@vaadin/hilla-generator-plugin-push": "file:../../../../ts/generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "file:../../../../ts/generator-plugin-signals",
"@vaadin/hilla-generator-plugin-subtypes": "file:../../../../ts/generator-plugin-subtypes",
"@vaadin/hilla-generator-utils": "file:../../../../ts/generator-utils",
"@vitejs/plugin-react": "4.2.1",
Expand Down Expand Up @@ -64,6 +65,7 @@
"@vaadin/hilla-generator-plugin-model": "$@vaadin/hilla-generator-plugin-model",
"@vaadin/hilla-generator-plugin-barrel": "$@vaadin/hilla-generator-plugin-barrel",
"@vaadin/hilla-generator-plugin-push": "$@vaadin/hilla-generator-plugin-push",
"@vaadin/hilla-generator-plugin-signals": "$@vaadin/hilla-generator-plugin-signals",
"@vaadin/hilla-generator-core": "$@vaadin/hilla-generator-core",
"@vaadin/hilla-generator-plugin-client": "$@vaadin/hilla-generator-plugin-client",
"@vaadin/hilla-generator-utils": "$@vaadin/hilla-generator-utils",
Expand Down Expand Up @@ -91,6 +93,7 @@
"@vaadin/hilla-generator-plugin-client": "24.4.0-alpha7",
"@vaadin/hilla-generator-plugin-model": "24.4.0-alpha7",
"@vaadin/hilla-generator-plugin-push": "24.4.0-alpha7",
"@vaadin/hilla-generator-plugin-signals": "24.5.0-alpha5",
"@vaadin/hilla-generator-plugin-subtypes": "24.4.0-alpha7",
"@vaadin/hilla-generator-utils": "24.4.0-alpha7",
"@vaadin/hilla-lit-form": "24.4.0-alpha7",
Expand Down
Loading
Loading