@alevnyacow/nzmt 0.22.0 → 0.22.1
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/README.md +9 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,22 +128,22 @@ export default async function Page() {
|
|
|
128
128
|
|
|
129
129
|
## Complex scaffolding
|
|
130
130
|
|
|
131
|
-
| Command |
|
|
131
|
+
| Command | Scaffolding result |
|
|
132
132
|
|---------|-------------|
|
|
133
133
|
| `npx nzmt crud-api <name>` | CRUD via Server Actions and React Query hooks. |
|
|
134
134
|
| `npx nzmt crud-service <name>` | CRUD via Server Actions (no Controllers, API Routes and React Query hooks). |
|
|
135
|
-
| `npx nzmt se <name>` |
|
|
136
|
-
| `npx nzmt rq` |
|
|
135
|
+
| `npx nzmt se <name>` | **s**tored **e**ntity: entity + store (contracts linked). |
|
|
136
|
+
| `npx nzmt rq` | API **r**outes and React **q**eries for all of your controllers. This command will also remove endpoints which don't exist anymore with according React query hooks |
|
|
137
137
|
|
|
138
138
|
## Single module scaffolding
|
|
139
139
|
|
|
140
|
-
| Command |
|
|
140
|
+
| Command | Scaffolding result |Options|
|
|
141
141
|
|---------|-------------|-------|
|
|
142
|
-
| `npx nzmt e <name>` |
|
|
143
|
-
| `npx nzmt vo <name>` |
|
|
144
|
-
| `npx nzmt cs <name>` |
|
|
145
|
-
| `npx nzmt s <name>` |
|
|
146
|
-
| `npx nzmt c <name>` |
|
|
142
|
+
| `npx nzmt e <name>` | **e**ntity ||
|
|
143
|
+
| `npx nzmt vo <name>` | **v**alue **o**bject ||
|
|
144
|
+
| `npx nzmt cs <name>` | **c**ustom **s**tore (all schemas are `z.object({})`) ||
|
|
145
|
+
| `npx nzmt s <name>` | **s**ervice |`i:UserStore,Logger` will automatically inject `UserStore` and `Logger`. E.g. `npx nzmt s shop i:UserStore,ProductStore` will create `ShopService` with already injected `UserStore` and `ProductStore`|
|
|
146
|
+
| `npx nzmt c <name>` | **c**ontroller |`i:UserService` will automatically inject `UserService`. `Logger` and `Guared` are injected by default regardless of `i:` option|
|
|
147
147
|
|
|
148
148
|
# FAQ
|
|
149
149
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alevnyacow/nzmt",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.1",
|
|
4
4
|
"description": "Next Zod Modules Toolkit",
|
|
5
5
|
"keywords": ["next", "full-stack", "server", "backend", "cli", "scaffolder", "zod", "rest", "contract programming", "react-query", "ddd", "domain-driven"],
|
|
6
6
|
"repository": {
|