@currentjs/gen 0.3.1 → 0.5.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/CHANGELOG.md +8 -289
- package/README.md +623 -427
- package/dist/cli.js +2 -1
- package/dist/commands/commit.js +25 -42
- package/dist/commands/createApp.js +1 -0
- package/dist/commands/createModule.js +151 -45
- package/dist/commands/diff.js +27 -40
- package/dist/commands/generateAll.js +141 -291
- package/dist/commands/migrateCommit.js +6 -18
- package/dist/commands/migratePush.d.ts +1 -0
- package/dist/commands/migratePush.js +135 -0
- package/dist/commands/migrateUpdate.d.ts +1 -0
- package/dist/commands/migrateUpdate.js +147 -0
- package/dist/commands/newGenerateAll.d.ts +4 -0
- package/dist/commands/newGenerateAll.js +336 -0
- package/dist/generators/controllerGenerator.d.ts +43 -19
- package/dist/generators/controllerGenerator.js +547 -329
- package/dist/generators/domainLayerGenerator.d.ts +21 -0
- package/dist/generators/domainLayerGenerator.js +276 -0
- package/dist/generators/dtoGenerator.d.ts +21 -0
- package/dist/generators/dtoGenerator.js +518 -0
- package/dist/generators/newControllerGenerator.d.ts +55 -0
- package/dist/generators/newControllerGenerator.js +644 -0
- package/dist/generators/newServiceGenerator.d.ts +19 -0
- package/dist/generators/newServiceGenerator.js +266 -0
- package/dist/generators/newStoreGenerator.d.ts +39 -0
- package/dist/generators/newStoreGenerator.js +408 -0
- package/dist/generators/newTemplateGenerator.d.ts +29 -0
- package/dist/generators/newTemplateGenerator.js +510 -0
- package/dist/generators/serviceGenerator.d.ts +16 -51
- package/dist/generators/serviceGenerator.js +167 -586
- package/dist/generators/storeGenerator.d.ts +35 -32
- package/dist/generators/storeGenerator.js +291 -238
- package/dist/generators/storeGeneratorV2.d.ts +31 -0
- package/dist/generators/storeGeneratorV2.js +190 -0
- package/dist/generators/templateGenerator.d.ts +21 -21
- package/dist/generators/templateGenerator.js +393 -268
- package/dist/generators/templates/appTemplates.d.ts +3 -1
- package/dist/generators/templates/appTemplates.js +15 -10
- package/dist/generators/templates/data/appYamlTemplate +5 -2
- package/dist/generators/templates/data/cursorRulesTemplate +315 -221
- package/dist/generators/templates/data/frontendScriptTemplate +76 -47
- package/dist/generators/templates/data/mainViewTemplate +1 -1
- package/dist/generators/templates/data/systemTsTemplate +5 -0
- package/dist/generators/templates/index.d.ts +0 -3
- package/dist/generators/templates/index.js +0 -3
- package/dist/generators/templates/newStoreTemplates.d.ts +5 -0
- package/dist/generators/templates/newStoreTemplates.js +141 -0
- package/dist/generators/templates/storeTemplates.d.ts +1 -5
- package/dist/generators/templates/storeTemplates.js +102 -219
- package/dist/generators/templates/viewTemplates.js +1 -1
- package/dist/generators/useCaseGenerator.d.ts +13 -0
- package/dist/generators/useCaseGenerator.js +188 -0
- package/dist/types/configTypes.d.ts +148 -0
- package/dist/types/configTypes.js +10 -0
- package/dist/utils/childEntityUtils.d.ts +18 -0
- package/dist/utils/childEntityUtils.js +78 -0
- package/dist/utils/commandUtils.d.ts +43 -0
- package/dist/utils/commandUtils.js +124 -0
- package/dist/utils/commitUtils.d.ts +4 -1
- package/dist/utils/constants.d.ts +10 -0
- package/dist/utils/constants.js +13 -1
- package/dist/utils/diResolver.d.ts +32 -0
- package/dist/utils/diResolver.js +204 -0
- package/dist/utils/new_parts_of_migrationUtils.d.ts +0 -0
- package/dist/utils/new_parts_of_migrationUtils.js +164 -0
- package/dist/utils/typeUtils.d.ts +19 -0
- package/dist/utils/typeUtils.js +70 -0
- package/package.json +7 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
## [0.5.0] – 2026-02-26
|
|
6
4
|
|
|
5
|
+
So many changes were made that we skipped version 0.4:
|
|
6
|
+
- Rethought YAML structures entirely
|
|
7
|
+
- Implemented DI wiring during the build process
|
|
8
|
+
- Internals: Added comprehensive testing
|
|
9
|
+
- Internals: Completed a full refactoring of the codebase
|
|
7
10
|
|
|
11
|
+
## [0.3.2] - 2025-12-28
|
|
8
12
|
|
|
13
|
+
fixed an issue 6
|
|
9
14
|
|
|
10
15
|
## [0.3.1] - 2025-10-03
|
|
11
16
|
|
|
@@ -15,308 +20,22 @@ bug fixed with overwriting committed changes
|
|
|
15
20
|
|
|
16
21
|
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
17
22
|
|
|
18
|
-
|
|
19
|
-
## [0.3.1] - 2025-10-03
|
|
20
|
-
|
|
21
|
-
bug fixed with overwriting committed changes
|
|
22
|
-
|
|
23
23
|
## [0.2.2] - 2025-10-02
|
|
24
24
|
|
|
25
25
|
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
## [0.3.1] - 2025-10-03
|
|
30
|
-
|
|
31
|
-
bug fixed with overwriting committed changes
|
|
32
|
-
|
|
33
|
-
## [0.3.0] - 2025-10-03
|
|
34
|
-
|
|
35
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
## [0.3.1] - 2025-10-03
|
|
39
|
-
|
|
40
|
-
bug fixed with overwriting committed changes
|
|
41
|
-
|
|
42
27
|
## [0.2.1] - 2025-09-18
|
|
43
28
|
|
|
44
29
|
Improve generated package.json
|
|
45
30
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
## [0.3.1] - 2025-10-03
|
|
50
|
-
|
|
51
|
-
bug fixed with overwriting committed changes
|
|
52
|
-
|
|
53
|
-
## [0.3.0] - 2025-10-03
|
|
54
|
-
|
|
55
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
## [0.3.1] - 2025-10-03
|
|
59
|
-
|
|
60
|
-
bug fixed with overwriting committed changes
|
|
61
|
-
|
|
62
|
-
## [0.2.2] - 2025-10-02
|
|
63
|
-
|
|
64
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
## [0.3.1] - 2025-10-03
|
|
69
|
-
|
|
70
|
-
bug fixed with overwriting committed changes
|
|
71
|
-
|
|
72
|
-
## [0.3.0] - 2025-10-03
|
|
73
|
-
|
|
74
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
## [0.3.1] - 2025-10-03
|
|
78
|
-
|
|
79
|
-
bug fixed with overwriting committed changes
|
|
80
|
-
|
|
81
31
|
## [0.2.0] - 2025-09-18
|
|
82
32
|
|
|
83
33
|
implement multi-model generation (controllers, services); fix service-controller interaction; update documentation: more clear & reflect important things
|
|
84
34
|
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
## [0.3.1] - 2025-10-03
|
|
90
|
-
|
|
91
|
-
bug fixed with overwriting committed changes
|
|
92
|
-
|
|
93
|
-
## [0.3.0] - 2025-10-03
|
|
94
|
-
|
|
95
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
## [0.3.1] - 2025-10-03
|
|
99
|
-
|
|
100
|
-
bug fixed with overwriting committed changes
|
|
101
|
-
|
|
102
|
-
## [0.2.2] - 2025-10-02
|
|
103
|
-
|
|
104
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
## [0.3.1] - 2025-10-03
|
|
109
|
-
|
|
110
|
-
bug fixed with overwriting committed changes
|
|
111
|
-
|
|
112
|
-
## [0.3.0] - 2025-10-03
|
|
113
|
-
|
|
114
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
## [0.3.1] - 2025-10-03
|
|
118
|
-
|
|
119
|
-
bug fixed with overwriting committed changes
|
|
120
|
-
|
|
121
|
-
## [0.2.1] - 2025-09-18
|
|
122
|
-
|
|
123
|
-
Improve generated package.json
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
## [0.3.1] - 2025-10-03
|
|
129
|
-
|
|
130
|
-
bug fixed with overwriting committed changes
|
|
131
|
-
|
|
132
|
-
## [0.3.0] - 2025-10-03
|
|
133
|
-
|
|
134
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
## [0.3.1] - 2025-10-03
|
|
138
|
-
|
|
139
|
-
bug fixed with overwriting committed changes
|
|
140
|
-
|
|
141
|
-
## [0.2.2] - 2025-10-02
|
|
142
|
-
|
|
143
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
## [0.3.1] - 2025-10-03
|
|
148
|
-
|
|
149
|
-
bug fixed with overwriting committed changes
|
|
150
|
-
|
|
151
|
-
## [0.3.0] - 2025-10-03
|
|
152
|
-
|
|
153
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
## [0.3.1] - 2025-10-03
|
|
157
|
-
|
|
158
|
-
bug fixed with overwriting committed changes
|
|
159
|
-
|
|
160
35
|
## [0.1.2] - 2025-09-18
|
|
161
36
|
|
|
162
37
|
fix: failed to generate with empty permissions actions
|
|
163
38
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
## [0.3.1] - 2025-10-03
|
|
170
|
-
|
|
171
|
-
bug fixed with overwriting committed changes
|
|
172
|
-
|
|
173
|
-
## [0.3.0] - 2025-10-03
|
|
174
|
-
|
|
175
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
## [0.3.1] - 2025-10-03
|
|
179
|
-
|
|
180
|
-
bug fixed with overwriting committed changes
|
|
181
|
-
|
|
182
|
-
## [0.2.2] - 2025-10-02
|
|
183
|
-
|
|
184
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
## [0.3.1] - 2025-10-03
|
|
189
|
-
|
|
190
|
-
bug fixed with overwriting committed changes
|
|
191
|
-
|
|
192
|
-
## [0.3.0] - 2025-10-03
|
|
193
|
-
|
|
194
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
## [0.3.1] - 2025-10-03
|
|
198
|
-
|
|
199
|
-
bug fixed with overwriting committed changes
|
|
200
|
-
|
|
201
|
-
## [0.2.1] - 2025-09-18
|
|
202
|
-
|
|
203
|
-
Improve generated package.json
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
## [0.3.1] - 2025-10-03
|
|
209
|
-
|
|
210
|
-
bug fixed with overwriting committed changes
|
|
211
|
-
|
|
212
|
-
## [0.3.0] - 2025-10-03
|
|
213
|
-
|
|
214
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
## [0.3.1] - 2025-10-03
|
|
218
|
-
|
|
219
|
-
bug fixed with overwriting committed changes
|
|
220
|
-
|
|
221
|
-
## [0.2.2] - 2025-10-02
|
|
222
|
-
|
|
223
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
## [0.3.1] - 2025-10-03
|
|
228
|
-
|
|
229
|
-
bug fixed with overwriting committed changes
|
|
230
|
-
|
|
231
|
-
## [0.3.0] - 2025-10-03
|
|
232
|
-
|
|
233
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
## [0.3.1] - 2025-10-03
|
|
237
|
-
|
|
238
|
-
bug fixed with overwriting committed changes
|
|
239
|
-
|
|
240
|
-
## [0.2.0] - 2025-09-18
|
|
241
|
-
|
|
242
|
-
implement multi-model generation (controllers, services); fix service-controller interaction; update documentation: more clear & reflect important things
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
## [0.3.1] - 2025-10-03
|
|
249
|
-
|
|
250
|
-
bug fixed with overwriting committed changes
|
|
251
|
-
|
|
252
|
-
## [0.3.0] - 2025-10-03
|
|
253
|
-
|
|
254
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
## [0.3.1] - 2025-10-03
|
|
258
|
-
|
|
259
|
-
bug fixed with overwriting committed changes
|
|
260
|
-
|
|
261
|
-
## [0.2.2] - 2025-10-02
|
|
262
|
-
|
|
263
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
## [0.3.1] - 2025-10-03
|
|
268
|
-
|
|
269
|
-
bug fixed with overwriting committed changes
|
|
270
|
-
|
|
271
|
-
## [0.3.0] - 2025-10-03
|
|
272
|
-
|
|
273
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
## [0.3.1] - 2025-10-03
|
|
277
|
-
|
|
278
|
-
bug fixed with overwriting committed changes
|
|
279
|
-
|
|
280
|
-
## [0.2.1] - 2025-09-18
|
|
281
|
-
|
|
282
|
-
Improve generated package.json
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
## [0.3.1] - 2025-10-03
|
|
288
|
-
|
|
289
|
-
bug fixed with overwriting committed changes
|
|
290
|
-
|
|
291
|
-
## [0.3.0] - 2025-10-03
|
|
292
|
-
|
|
293
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
## [0.3.1] - 2025-10-03
|
|
297
|
-
|
|
298
|
-
bug fixed with overwriting committed changes
|
|
299
|
-
|
|
300
|
-
## [0.2.2] - 2025-10-02
|
|
301
|
-
|
|
302
|
-
fix bug: required params after optional in the generated models; fix: views(templates) are not stored in the registry and being regenerated (overwritten); small readme fix; running 'npm i' on 'create app' and 'npm run build' on 'generate'
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
## [0.3.1] - 2025-10-03
|
|
307
|
-
|
|
308
|
-
bug fixed with overwriting committed changes
|
|
309
|
-
|
|
310
|
-
## [0.3.0] - 2025-10-03
|
|
311
|
-
|
|
312
|
-
- model relationship (between each other); - frontend script cleanup; - new command: migrate commit; - small refactoring.
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
## [0.3.1] - 2025-10-03
|
|
316
|
-
|
|
317
|
-
bug fixed with overwriting committed changes
|
|
318
|
-
|
|
319
39
|
## [0.1.1] - 2025-09-17
|
|
320
40
|
|
|
321
41
|
Initial release
|
|
322
|
-
|