@plugmatica/plugin-build 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/LICENSE-APACHE +202 -0
- package/README.md +221 -2
- package/dev-target/README.md +20 -0
- package/dev-target/compose.yaml +119 -0
- package/dist/chunk-EOLUQEKQ.js +587 -0
- package/dist/chunk-QHTGR4ZB.js +9378 -0
- package/dist/chunk-TQNG5OZ3.js +3135 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +2606 -0
- package/dist/index.d.ts +2144 -0
- package/dist/index.js +230 -0
- package/dist/vite-WRwB4IG8.d.ts +929 -0
- package/dist/vite.d.ts +3 -0
- package/dist/vite.js +20 -0
- package/package.json +94 -4
- package/templates/README.md +29 -0
- package/templates/backend-capabilities/LICENSE.txt +231 -0
- package/templates/backend-capabilities/backend/Cargo.toml +21 -0
- package/templates/backend-capabilities/backend/src/lib.rs +179 -0
- package/templates/backend-capabilities/backend/tests/basic.rs +174 -0
- package/templates/backend-capabilities/manifest.source.json +64 -0
- package/templates/backend-capabilities/package.json +22 -0
- package/templates/backend-composition/LICENSE.txt +231 -0
- package/templates/backend-composition/backend/Cargo.toml +21 -0
- package/templates/backend-composition/backend/src/lib.rs +96 -0
- package/templates/backend-composition/backend/tests/basic.rs +75 -0
- package/templates/backend-composition/manifest.source.json +26 -0
- package/templates/backend-composition/package.json +22 -0
- package/templates/backend-entities/LICENSE.txt +231 -0
- package/templates/backend-entities/backend/Cargo.toml +20 -0
- package/templates/backend-entities/backend/src/lib.rs +77 -0
- package/templates/backend-entities/backend/tests/basic.rs +26 -0
- package/templates/backend-entities/manifest.source.json +15 -0
- package/templates/backend-entities/package.json +22 -0
- package/templates/backend-minimal/LICENSE.txt +231 -0
- package/templates/backend-minimal/backend/Cargo.toml +21 -0
- package/templates/backend-minimal/backend/src/lib.rs +69 -0
- package/templates/backend-minimal/backend/tests/basic.rs +67 -0
- package/templates/backend-minimal/manifest.source.json +15 -0
- package/templates/backend-minimal/package.json +22 -0
- package/templates/backend-operations/LICENSE.txt +231 -0
- package/templates/backend-operations/backend/Cargo.toml +21 -0
- package/templates/backend-operations/backend/src/lib.rs +117 -0
- package/templates/backend-operations/backend/tests/basic.rs +169 -0
- package/templates/backend-operations/manifest.source.json +15 -0
- package/templates/backend-operations/package.json +22 -0
- package/templates/frontend-entity/LICENSE.txt +27 -0
- package/templates/frontend-entity/README.md +46 -0
- package/templates/frontend-entity/frontend/i18n/en-GB.json +5 -0
- package/templates/frontend-entity/frontend/package.json +32 -0
- package/templates/frontend-entity/frontend/src/CustomerListPage.tsx +98 -0
- package/templates/frontend-entity/frontend/src/model.ts +5 -0
- package/templates/frontend-entity/frontend/tests/entityLifecycle.test.tsx +79 -0
- package/templates/frontend-entity/frontend/tsconfig.json +4 -0
- package/templates/frontend-entity/frontend/vite.config.ts +3 -0
- package/templates/frontend-entity/frontend/vitest.config.ts +9 -0
- package/templates/frontend-entity/manifest.source.json +53 -0
- package/templates/frontend-entity/package.json +22 -0
- package/templates/frontend-entity/pnpm-workspace.yaml +2 -0
- package/templates/frontend-extension/LICENSE.txt +27 -0
- package/templates/frontend-extension/README.md +7 -0
- package/templates/frontend-extension/frontend/i18n/en-GB.json +4 -0
- package/templates/frontend-extension/frontend/package.json +25 -0
- package/templates/frontend-extension/frontend/src/CustomerNotes.tsx +24 -0
- package/templates/frontend-extension/frontend/tsconfig.json +4 -0
- package/templates/frontend-extension/frontend/vite.config.ts +3 -0
- package/templates/frontend-extension/manifest.source.json +16 -0
- package/templates/frontend-extension/package.json +22 -0
- package/templates/frontend-extension/pnpm-workspace.yaml +2 -0
- package/templates/frontend-minimal/LICENSE.txt +27 -0
- package/templates/frontend-minimal/README.md +5 -0
- package/templates/frontend-minimal/frontend/i18n/en-GB.json +4 -0
- package/templates/frontend-minimal/frontend/package.json +25 -0
- package/templates/frontend-minimal/frontend/src/Page.tsx +16 -0
- package/templates/frontend-minimal/frontend/src/entry.ts +1 -0
- package/templates/frontend-minimal/frontend/tsconfig.json +4 -0
- package/templates/frontend-minimal/frontend/vite.config.ts +3 -0
- package/templates/frontend-minimal/manifest.source.json +51 -0
- package/templates/frontend-minimal/package.json +22 -0
- package/templates/frontend-minimal/pnpm-workspace.yaml +2 -0
- package/templates/frontend-provider-event/LICENSE.txt +27 -0
- package/templates/frontend-provider-event/README.md +7 -0
- package/templates/frontend-provider-event/frontend/i18n/en-GB.json +3 -0
- package/templates/frontend-provider-event/frontend/package.json +25 -0
- package/templates/frontend-provider-event/frontend/src/CustomerBadgeProvider.ts +24 -0
- package/templates/frontend-provider-event/frontend/src/CustomerSavedHandler.ts +22 -0
- package/templates/frontend-provider-event/frontend/tsconfig.json +4 -0
- package/templates/frontend-provider-event/frontend/vite.config.ts +3 -0
- package/templates/frontend-provider-event/manifest.source.json +16 -0
- package/templates/frontend-provider-event/package.json +22 -0
- package/templates/frontend-provider-event/pnpm-workspace.yaml +2 -0
- package/templates/full-stack-minimal/LICENSE.txt +231 -0
- package/templates/full-stack-minimal/README.md +49 -0
- package/templates/full-stack-minimal/backend/Cargo.toml +18 -0
- package/templates/full-stack-minimal/backend/src/lib.rs +49 -0
- package/templates/full-stack-minimal/backend/tests/basic.rs +49 -0
- package/templates/full-stack-minimal/frontend/i18n/en-GB.json +6 -0
- package/templates/full-stack-minimal/frontend/package.json +25 -0
- package/templates/full-stack-minimal/frontend/src/Page.tsx +29 -0
- package/templates/full-stack-minimal/frontend/src/entry.ts +1 -0
- package/templates/full-stack-minimal/frontend/tsconfig.json +4 -0
- package/templates/full-stack-minimal/frontend/vite.config.ts +3 -0
- package/templates/full-stack-minimal/manifest.source.json +55 -0
- package/templates/full-stack-minimal/package.json +24 -0
- package/templates/full-stack-minimal/pnpm-workspace.yaml +2 -0
- package/templates/full-stack-workflow-node/LICENSE.txt +231 -0
- package/templates/full-stack-workflow-node/README.md +111 -0
- package/templates/full-stack-workflow-node/backend/Cargo.toml +12 -0
- package/templates/full-stack-workflow-node/backend/src/lib.rs +70 -0
- package/templates/full-stack-workflow-node/frontend/i18n/en-GB.json +10 -0
- package/templates/full-stack-workflow-node/frontend/package.json +29 -0
- package/templates/full-stack-workflow-node/frontend/src/editors/FormatLabelEditor.tsx +25 -0
- package/templates/full-stack-workflow-node/frontend/src/entry.ts +2 -0
- package/templates/full-stack-workflow-node/frontend/src/nodes/FormatLabel.tsx +18 -0
- package/templates/full-stack-workflow-node/frontend/src/presentations/FormatLabelPresentation.tsx +7 -0
- package/templates/full-stack-workflow-node/frontend/tsconfig.json +4 -0
- package/templates/full-stack-workflow-node/frontend/vite.config.ts +5 -0
- package/templates/full-stack-workflow-node/manifest.source.json +18 -0
- package/templates/full-stack-workflow-node/package.json +25 -0
- package/templates/full-stack-workflow-node/pnpm-workspace.yaml +2 -0
- package/templates/localization-fr-fr/LICENSE.txt +27 -0
- package/templates/localization-fr-fr/README.md +5 -0
- package/templates/localization-fr-fr/localization/plugmatica.customer.fr-FR.json +4 -0
- package/templates/localization-fr-fr/manifest.source.json +36 -0
- package/templates/localization-fr-fr/package.json +18 -0
- package/templates/starter-projection.json +448 -0
- package/tsconfig.plugin.json +14 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Plugmatica contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/README.md
CHANGED
|
@@ -1,3 +1,222 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @plugmatica/plugin-build
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Build-time tooling for independently developed Plugmatica plugins: verified starter creation, manifest/compiler validation, frontend and backend build orchestration, package assembly/install, i18n checks, typed extension targets, and the supported Vite/Module Federation integration.
|
|
4
|
+
|
|
5
|
+
## Who should use it
|
|
6
|
+
|
|
7
|
+
Every generated Plugmatica starter uses this package for the public plugin lifecycle. Frontend facets additionally use its Vite integration rather than configuring Module Federation and Plugmatica compiler rules independently.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
pnpm add -D @plugmatica/plugin-build@beta vite@^8.0.12
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
Runtime/tooling requirements:
|
|
18
|
+
|
|
19
|
+
- Node.js 22.18+ (22.x) or 24+ for the supported toolchain.
|
|
20
|
+
- peer `vite ^8.0.12`.
|
|
21
|
+
- a Plugmatica plugin root containing `manifest.source.json`.
|
|
22
|
+
- Module Federation Vite integration is provided by `@module-federation/vite ^1.25.1`.
|
|
23
|
+
|
|
24
|
+
For independently installed plugin projects, keep the Module Federation declaration
|
|
25
|
+
tooling on patched dependencies: `adm-zip` 0.6.1 or later and `undici` 7.30.2 or
|
|
26
|
+
later within the 7.x series. Check the actual consumer lockfile with your package
|
|
27
|
+
manager. SDK source-workspace overrides do not carry over to installed packages.
|
|
28
|
+
If the resolved Module Federation declaration tooling still pins Undici 7.30.1,
|
|
29
|
+
pnpm consumers can place this narrowly scoped override in their own root
|
|
30
|
+
`pnpm-workspace.yaml`:
|
|
31
|
+
|
|
32
|
+
```yaml
|
|
33
|
+
overrides:
|
|
34
|
+
"@module-federation/dts-plugin@2.9.4>undici": "7.30.2"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Reinstall and audit the resulting lockfile. Remove the override after upstream
|
|
38
|
+
adopts the fix. Other package managers support equivalent root overrides.
|
|
39
|
+
|
|
40
|
+
## Quick start
|
|
41
|
+
|
|
42
|
+
A plugin with a frontend facet should use the supported preset:
|
|
43
|
+
|
|
44
|
+
```ts
|
|
45
|
+
// frontend/vite.config.ts
|
|
46
|
+
import { definePlugmaticaPluginConfig } from "@plugmatica/plugin-build/vite";
|
|
47
|
+
|
|
48
|
+
export default definePlugmaticaPluginConfig();
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
The preset reads `manifest.source.json`, derives the federation producer/exposes, owns shared-singleton compatibility and emits `remoteEntry.js`. Conventional `./CustomerPage` exposes resolve to `frontend/src/CustomerPage.tsx` or the corresponding TS/JS/index module.
|
|
52
|
+
|
|
53
|
+
The remote consumes `@plugmatica/data-viz` from the runtime host share scope, without a local renderer fallback. Keep Data Viz installed for authoring and type checking; the host supplies the compatible runtime singleton and its private ECharts engine. Direct ECharts and private Data Viz imports remain unsupported.
|
|
54
|
+
|
|
55
|
+
Use the `plugmatica` CLI for normal workflows. Raw Vite/Module Federation configuration is an advanced escape hatch rather than the supported default path.
|
|
56
|
+
|
|
57
|
+
The CLI parser, `--help`, public website reference and MCP command reference are generated from one canonical command specification, so option names/defaults are not maintained independently. The generated website reference is `/sdk/reference/cli`.
|
|
58
|
+
|
|
59
|
+
### Workflow node frontend compilation
|
|
60
|
+
|
|
61
|
+
The public `defineWorkflowNode({...})` SDK helper lets one exposed module declare any combination of `catalog`, `editor`/`loadEditor`, and `presentation`/`loadPresentation` facets. The TypeScript compiler discovers the **literal** node definition without evaluating plugin code, generating ordinary `workflow.node@^1.1.0` capability contributions for the declared facets. No private Workflow plugin dependency or second runtime registry is needed.
|
|
62
|
+
|
|
63
|
+
The source manifest still declares each `module` in `frontend.exposes`. Frontend Workflow nodes are **optional** but must correspond to an executable `nodeType` owned by the same plugin in its compiled Rust `backend/descriptor.json` when present. The build fails on unknown/foreign actions, incompatible `contractVersion`, disallowed `editableFields` (including managed Connection/secrets), duplicate contributions, dynamic identity fields, missing module exposes and missing owner-local translated catalog keys. Backend-only plugins remain valid with no frontend node definitions.
|
|
64
|
+
|
|
65
|
+
The compiler emits a stable `metadata.workflowNode.nodeType` association on each generated facet. This is regular public extension contribution metadata, **not** a second node registry or a new source manifest field. `plugmatica workflow inspect --package dist/plugin --require-ui` validates these per-action associations and the full canonical Rust-to-manifest projection (executor, schemas, resource bindings and event triggers); an event trigger generated from the backend descriptor does **not** need a React editor.
|
|
66
|
+
|
|
67
|
+
Compiler tests belong to this package's `test:compiler` command; run them from an installed source checkout. Package tests complement, rather than replace, a packed external-consumer build and actual host-loaded plugin verification.
|
|
68
|
+
|
|
69
|
+
Prefer `loadEditor: () => import('./MyEditor')` and `loadPresentation: () => import('./MyPresentation')` to avoid eager editor code in palette searches. The host resolves the catalog separately and falls back to the backend-authored generic editor if a frontend contribution is unavailable. Standalone published-toolchain and installed-browser acceptance remain separate from compiler tests.
|
|
70
|
+
|
|
71
|
+
## Public entry points
|
|
72
|
+
|
|
73
|
+
- `@plugmatica/plugin-build` — build/compiler/scaffolding APIs.
|
|
74
|
+
- `@plugmatica/plugin-build/vite` — supported Vite preset.
|
|
75
|
+
- `@plugmatica/plugin-build/tsconfig.plugin.json` — canonical plugin TypeScript base config.
|
|
76
|
+
- `plugmatica` — primary CLI binary.
|
|
77
|
+
- `plugmatica-plugin-build` — compatibility CLI alias for the same binary.
|
|
78
|
+
|
|
79
|
+
Package-internal source paths are not supported public APIs. The root currently
|
|
80
|
+
also re-exports Vite integration; prefer `@plugmatica/plugin-build/vite` in Vite
|
|
81
|
+
configuration to make that dependency explicit. The root is not a Vite-free
|
|
82
|
+
compiler entry point, and Vite remains a required peer for this beta. Removing
|
|
83
|
+
the root re-export would require a separately reviewed API migration.
|
|
84
|
+
|
|
85
|
+
## Create a plugin
|
|
86
|
+
|
|
87
|
+
After installing Plugin Build in a project, run the local CLI with
|
|
88
|
+
`pnpm exec plugmatica`. The following `plugmatica` commands assume the CLI is
|
|
89
|
+
on your PATH (or use the `pnpm exec` prefix). To bootstrap a new project without
|
|
90
|
+
a global installation, use:
|
|
91
|
+
|
|
92
|
+
```bash
|
|
93
|
+
pnpm --package=@plugmatica/plugin-build@beta dlx plugmatica create ./my-plugin --template frontend-minimal
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
List the verified starters packaged with the CLI:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
plugmatica templates
|
|
100
|
+
plugmatica templates --json
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Create from the closest canonical starter:
|
|
104
|
+
|
|
105
|
+
```bash
|
|
106
|
+
plugmatica create ./my-plugin --template frontend-minimal
|
|
107
|
+
plugmatica create ./my-entity-plugin --template frontend-entity
|
|
108
|
+
plugmatica create ./my-backend-plugin --template backend-minimal
|
|
109
|
+
plugmatica create ./my-full-stack-plugin --template full-stack-minimal
|
|
110
|
+
plugmatica create ./my-language-pack --template localization-fr-fr
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Composition starters expose their required public-capability parameters through `plugmatica templates --json`. For example:
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
plugmatica create ./my-extension \
|
|
117
|
+
--template frontend-extension \
|
|
118
|
+
--target-surface tabs \
|
|
119
|
+
--target-key customer.detail.related \
|
|
120
|
+
--target-point items \
|
|
121
|
+
--target-contract-id plugmatica.ui.tabs
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The generated extension remains self-contained: it targets the versioned runtime capability with `extensionTarget.ui(...)` and does not add or import the provider plugin package. Use generated direct targets only when coupling to one exact provider plugin/version is intentional.
|
|
125
|
+
|
|
126
|
+
The packaged starters are generated from the same verified canonical examples used by the documentation and Developer MCP. Use `--template` to select a starter; `plugmatica create --profile` is retired (replace legacy `minimal` with `frontend-minimal`, `backend`/`headless` with `backend-minimal`, and `full-stack` with `full-stack-minimal`). The independent `plugmatica backend build --profile` still selects a Cargo build profile.
|
|
127
|
+
|
|
128
|
+
`manifest.source.json` must not declare `manifestVersion` or `protocolVersion`; those values are platform-owned and are materialized by the build tooling. The beta manifest/protocol contract is the current v1 contract.
|
|
129
|
+
|
|
130
|
+
## Build, package and install
|
|
131
|
+
|
|
132
|
+
Generated starters expose a source-less public lifecycle from the project root:
|
|
133
|
+
|
|
134
|
+
```bash
|
|
135
|
+
pnpm install
|
|
136
|
+
pnpm check
|
|
137
|
+
pnpm build
|
|
138
|
+
pnpm plugin:package
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
Backend/full-stack starters require the public descriptor executable once:
|
|
142
|
+
|
|
143
|
+
```bash
|
|
144
|
+
rustup target add wasm32-unknown-unknown
|
|
145
|
+
cargo install --locked --version 0.1.0 plugmatica-describe
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
`plugmatica backend build` compiles the guest and generates `backend/descriptor.json`; `plugmatica package` assembles `dist/plugin`.
|
|
149
|
+
|
|
150
|
+
For local development, once the compatible Runtime API, Runtime Shell and
|
|
151
|
+
Keycloak images are published and accessible, use Docker with Compose to start
|
|
152
|
+
the packaged development target and hot-install the package:
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
plugmatica dev up
|
|
156
|
+
pnpm plugin:dev
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
The target uses loopback-only published ports. The images are released separately from the SDK. `plugmatica dev install` validates the package, copies it into the Runtime API container and calls the authenticated reconciliation endpoint, so a same-version development build can be refreshed without cloning Plugmatica.
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
plugmatica dev status
|
|
163
|
+
plugmatica dev logs --service runtime-api
|
|
164
|
+
plugmatica dev stop
|
|
165
|
+
plugmatica dev reset
|
|
166
|
+
```
|
|
167
|
+
|
|
168
|
+
For another supported runtime that exposes a filesystem bundle root, the generic install command remains available:
|
|
169
|
+
|
|
170
|
+
```bash
|
|
171
|
+
plugmatica install --bundle-root /path/to/runtime-plugins
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
No Plugmatica source checkout or repository-only packaging tool is part of this public lifecycle.
|
|
175
|
+
|
|
176
|
+
For local `plugmatica install --bundle-root`, an assembled manifest must use a
|
|
177
|
+
single filesystem path segment for both plugin `key` and `version`. Paths with
|
|
178
|
+
`/`, `\\`, directory traversal (`..`) or control characters are rejected
|
|
179
|
+
before replacement of a destination. This safeguard protects neighbouring
|
|
180
|
+
bundle directories; the normal plugin manifest contract still applies.
|
|
181
|
+
|
|
182
|
+
## i18n maintenance
|
|
183
|
+
|
|
184
|
+
Use the advisory i18n doctor to find unused keys, duplicate/variant copy and local messages that can reuse `$common` vocabulary:
|
|
185
|
+
|
|
186
|
+
```bash
|
|
187
|
+
plugmatica i18n doctor --manifest manifest.source.json
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
Large plugins can author flat dictionaries as feature fragments under `frontend/i18n-src/<locale>/`; the compiler materialises the unchanged runtime resource at `frontend/i18n/<locale>.json`. Add `--strict` when you deliberately want doctor findings to fail CI.
|
|
191
|
+
|
|
192
|
+
## Beta stability
|
|
193
|
+
|
|
194
|
+
This package is part of the Plugmatica public beta developer-tooling API. Compiler diagnostics and validation may become stricter when they prevent ambiguous/unsafe plugin contracts, but public configuration and exported APIs follow the normal versioned/release-noted compatibility process.
|
|
195
|
+
|
|
196
|
+
## Documentation
|
|
197
|
+
|
|
198
|
+
Plugin development guide: https://plugmatica.com/plugmatica/plugin-development/intro
|
|
199
|
+
|
|
200
|
+
Frontend/compiler guidance: https://plugmatica.com/plugmatica/plugin-development/frontend/
|
|
201
|
+
|
|
202
|
+
### Full-stack Workflow node starter and packaged-contract inspection
|
|
203
|
+
|
|
204
|
+
`plugmatica create ./workflow-demo --template full-stack-workflow-node --plugin-key acme.workflow-label` creates an independently packaged, portable Rust + React Workflow action loaded by the Plugmatica host. `defineWorkflowNode()` owns the catalog, editor and canvas presentation; the host controls Connections, mappings and persistence.
|
|
205
|
+
|
|
206
|
+
After `pnpm build && pnpm plugin:package`, run `plugmatica workflow inspect --package dist/plugin --require-ui` to audit compiled artifacts. You can pass `--registry-json` with an exported effective `/api/workflow-node-types` response to check active backend identity. The result intentionally does not claim the UI ran in a browser. The CLI reports package integrity (`packageStatus`) and effective-registry agreement (`registryStatus`) independently: a valid package with a missing/mismatched runtime node returns `packageStatus: valid`, `registryStatus: mismatch`, and a nonzero exit. `browserStatus` remains `not_checked` until a real installed-browser test. Bad registry JSON is a registry-evidence error, never a reason to call intact package assets corrupt.
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
## Shipped-template verification
|
|
210
|
+
|
|
211
|
+
Run `pnpm run check:package` in this package after building its dependencies. The native scaffold suite checks the twelve templates shipped with the CLI. Their canonical sources and generation commands are in the SDK repository's `examples/` directory.
|
|
212
|
+
|
|
213
|
+
## Compiler semantic regression
|
|
214
|
+
|
|
215
|
+
`pnpm test:semantic-contracts` runs thirteen native compiler/semantic cases; `test:compiler` also includes the other compiler cases. See the [case guide in the SDK source repository](https://github.com/plugmatica/plugmatica-sdk/blob/main/frontend/packages/plugin-build/scripts/release/README.md).
|
|
216
|
+
|
|
217
|
+
## License
|
|
218
|
+
|
|
219
|
+
The TypeScript tooling is MIT. The npm distribution also contains
|
|
220
|
+
Apache-2.0 backend starter source and declares `MIT AND Apache-2.0`.
|
|
221
|
+
Both licence texts are included; scaffolded projects retain the applicable
|
|
222
|
+
starter notices without prescribing a licence for the author's new code.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Plugmatica plugin development target
|
|
2
|
+
|
|
3
|
+
This Compose definition is packaged with `@plugmatica/plugin-build` and is driven by the public `plugmatica dev ...` commands. It requires compatible published Plugmatica container images, public third-party images, Docker and Compose. The images are released separately; no Plugmatica source checkout or repository bind mount is required once they are available.
|
|
4
|
+
|
|
5
|
+
Default local endpoints:
|
|
6
|
+
|
|
7
|
+
- Runtime Shell: `http://localhost:8081`
|
|
8
|
+
- Runtime API: `http://localhost:5150`
|
|
9
|
+
- Keycloak: `http://localhost:8080`
|
|
10
|
+
- Mailpit: `http://localhost:8025`
|
|
11
|
+
|
|
12
|
+
The local development administrator is `plugmatica-admin` with password `plugmatica-dev-admin`. These credentials are deliberately fixed for the loopback-only disposable development target and must not be used for any deployed environment.
|
|
13
|
+
|
|
14
|
+
`plugmatica dev install` copies an already assembled `dist/plugin` package into the Runtime API container and calls the authenticated runtime reconciliation endpoint. A same-version package may therefore be rebuilt and refreshed during development without publishing a new release.
|
|
15
|
+
|
|
16
|
+
Container images can be overridden for release/acceptance testing with:
|
|
17
|
+
|
|
18
|
+
- `PLUGMATICA_DEV_RUNTIME_IMAGE`
|
|
19
|
+
- `PLUGMATICA_DEV_SHELL_IMAGE`
|
|
20
|
+
- `PLUGMATICA_DEV_KEYCLOAK_IMAGE`
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
name: plugmatica-plugin-dev
|
|
2
|
+
|
|
3
|
+
services:
|
|
4
|
+
runtime-db:
|
|
5
|
+
image: postgres:17-alpine
|
|
6
|
+
environment:
|
|
7
|
+
POSTGRES_USER: plugmatica
|
|
8
|
+
POSTGRES_PASSWORD: plugmatica-dev
|
|
9
|
+
POSTGRES_DB: runtime_api
|
|
10
|
+
volumes:
|
|
11
|
+
- runtime_db:/var/lib/postgresql/data
|
|
12
|
+
healthcheck:
|
|
13
|
+
test: ["CMD-SHELL", "pg_isready -U plugmatica -d runtime_api"]
|
|
14
|
+
interval: 3s
|
|
15
|
+
timeout: 3s
|
|
16
|
+
retries: 30
|
|
17
|
+
|
|
18
|
+
keycloak-db:
|
|
19
|
+
image: postgres:17-alpine
|
|
20
|
+
environment:
|
|
21
|
+
POSTGRES_USER: keycloak
|
|
22
|
+
POSTGRES_PASSWORD: keycloak-dev
|
|
23
|
+
POSTGRES_DB: keycloak
|
|
24
|
+
volumes:
|
|
25
|
+
- keycloak_db:/var/lib/postgresql/data
|
|
26
|
+
healthcheck:
|
|
27
|
+
test: ["CMD-SHELL", "pg_isready -U keycloak -d keycloak"]
|
|
28
|
+
interval: 3s
|
|
29
|
+
timeout: 3s
|
|
30
|
+
retries: 30
|
|
31
|
+
|
|
32
|
+
mailpit:
|
|
33
|
+
image: axllent/mailpit:v1.27
|
|
34
|
+
ports:
|
|
35
|
+
- "127.0.0.1:${PLUGMATICA_DEV_MAILPIT_UI_PORT:-8025}:8025"
|
|
36
|
+
|
|
37
|
+
keycloak:
|
|
38
|
+
image: ${PLUGMATICA_DEV_KEYCLOAK_IMAGE:-ghcr.io/plugmatica/keycloak:beta}
|
|
39
|
+
command:
|
|
40
|
+
- start-dev
|
|
41
|
+
- --import-realm
|
|
42
|
+
- --hostname=http://localhost:${PLUGMATICA_DEV_KEYCLOAK_PORT:-8080}
|
|
43
|
+
environment:
|
|
44
|
+
KC_DB: postgres
|
|
45
|
+
KC_DB_URL: jdbc:postgresql://keycloak-db:5432/keycloak
|
|
46
|
+
KC_DB_USERNAME: keycloak
|
|
47
|
+
KC_DB_PASSWORD: keycloak-dev
|
|
48
|
+
KC_BOOTSTRAP_ADMIN_USERNAME: temp-admin
|
|
49
|
+
KC_BOOTSTRAP_ADMIN_PASSWORD: plugmatica-dev-master
|
|
50
|
+
ports:
|
|
51
|
+
- "127.0.0.1:${PLUGMATICA_DEV_KEYCLOAK_PORT:-8080}:8080"
|
|
52
|
+
depends_on:
|
|
53
|
+
keycloak-db:
|
|
54
|
+
condition: service_healthy
|
|
55
|
+
|
|
56
|
+
keycloak-configure:
|
|
57
|
+
image: ${PLUGMATICA_DEV_KEYCLOAK_IMAGE:-ghcr.io/plugmatica/keycloak:beta}
|
|
58
|
+
entrypoint: ["/bin/bash", "/opt/plugmatica/configure.sh"]
|
|
59
|
+
environment:
|
|
60
|
+
KEYCLOAK_SERVER_URL: http://keycloak:8080
|
|
61
|
+
KEYCLOAK_REALM: plugmatica
|
|
62
|
+
PLUGMATICA_IDENTITY_PROFILE: dev
|
|
63
|
+
KEYCLOAK_BOOTSTRAP_ADMIN_USERNAME: temp-admin
|
|
64
|
+
KEYCLOAK_BOOTSTRAP_ADMIN_PASSWORD: plugmatica-dev-master
|
|
65
|
+
KEYCLOAK_ADMIN_CLIENT_ID: plugmatica-runtime-admin
|
|
66
|
+
KEYCLOAK_ADMIN_CLIENT_SECRET: plugmatica-dev-runtime-admin-secret
|
|
67
|
+
PLUGMATICA_BOOTSTRAP_ADMIN_USERNAME: plugmatica-admin
|
|
68
|
+
PLUGMATICA_BOOTSTRAP_ADMIN_PASSWORD: plugmatica-dev-admin
|
|
69
|
+
PLUGMATICA_DEV_SHELL_PORT: ${PLUGMATICA_DEV_SHELL_PORT:-8081}
|
|
70
|
+
depends_on:
|
|
71
|
+
keycloak:
|
|
72
|
+
condition: service_started
|
|
73
|
+
|
|
74
|
+
runtime-api:
|
|
75
|
+
image: ${PLUGMATICA_DEV_RUNTIME_IMAGE:-ghcr.io/plugmatica/runtime-api:beta}
|
|
76
|
+
environment:
|
|
77
|
+
LOCO_ENV: development
|
|
78
|
+
RUNTIME_API_BINDING: 0.0.0.0
|
|
79
|
+
RUNTIME_API_PORT: "5150"
|
|
80
|
+
RUNTIME_API_DATABASE_URL: postgres://plugmatica:plugmatica-dev@runtime-db:5432/runtime_api
|
|
81
|
+
RUNTIME_API_PUBLIC_URL: http://localhost:${PLUGMATICA_DEV_RUNTIME_API_PORT:-5150}
|
|
82
|
+
RUNTIME_API_CORS_ORIGIN: http://localhost:${PLUGMATICA_DEV_SHELL_PORT:-8081}
|
|
83
|
+
KEYCLOAK_ISSUER: http://localhost:${PLUGMATICA_DEV_KEYCLOAK_PORT:-8080}/realms/plugmatica
|
|
84
|
+
KEYCLOAK_JWKS_URL: http://keycloak:8080/realms/plugmatica/protocol/openid-connect/certs
|
|
85
|
+
KEYCLOAK_AUDIENCE: plugmatica-api
|
|
86
|
+
KEYCLOAK_EXPECTED_AZP: plugmatica-web
|
|
87
|
+
KEYCLOAK_ADMIN_CLIENT_ID: plugmatica-runtime-admin
|
|
88
|
+
KEYCLOAK_ADMIN_CLIENT_SECRET: plugmatica-dev-runtime-admin-secret
|
|
89
|
+
PLUGMATICA_BOOTSTRAP_ADMIN_SUBJECT: 00000000-0000-4000-8000-000000000001
|
|
90
|
+
PLUGMATICA_MAILER_HOST: mailpit
|
|
91
|
+
PLUGMATICA_MAILER_PORT: "1025"
|
|
92
|
+
PLUGMATICA_PLUGIN_BUNDLE_ROOT: /app/runtime-plugins
|
|
93
|
+
PLUGMATICA_STORAGE_ROOT: /app/runtime-data
|
|
94
|
+
volumes:
|
|
95
|
+
- runtime_data:/app/runtime-data
|
|
96
|
+
- runtime_plugins:/app/runtime-plugins
|
|
97
|
+
ports:
|
|
98
|
+
- "127.0.0.1:${PLUGMATICA_DEV_RUNTIME_API_PORT:-5150}:5150"
|
|
99
|
+
depends_on:
|
|
100
|
+
runtime-db:
|
|
101
|
+
condition: service_healthy
|
|
102
|
+
keycloak-configure:
|
|
103
|
+
condition: service_completed_successfully
|
|
104
|
+
|
|
105
|
+
runtime-shell:
|
|
106
|
+
image: ${PLUGMATICA_DEV_SHELL_IMAGE:-ghcr.io/plugmatica/runtime-shell:beta}
|
|
107
|
+
environment:
|
|
108
|
+
PLUGMATICA_API_PUBLIC_URL: http://localhost:${PLUGMATICA_DEV_RUNTIME_API_PORT:-5150}
|
|
109
|
+
KEYCLOAK_PUBLIC_ISSUER: http://localhost:${PLUGMATICA_DEV_KEYCLOAK_PORT:-8080}/realms/plugmatica
|
|
110
|
+
ports:
|
|
111
|
+
- "127.0.0.1:${PLUGMATICA_DEV_SHELL_PORT:-8081}:80"
|
|
112
|
+
depends_on:
|
|
113
|
+
- runtime-api
|
|
114
|
+
|
|
115
|
+
volumes:
|
|
116
|
+
runtime_db:
|
|
117
|
+
keycloak_db:
|
|
118
|
+
runtime_data:
|
|
119
|
+
runtime_plugins:
|