@veloxts/cli 0.6.26 → 0.6.27

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +735 -0
  2. package/GUIDE.md +239 -0
  3. package/package.json +10 -7
package/CHANGELOG.md ADDED
@@ -0,0 +1,735 @@
1
+ # @veloxts/cli
2
+
3
+ ## 0.6.27
4
+
5
+ ### Patch Changes
6
+
7
+ - chore: add GUIDE, LICENSE and CHANGELOG.md to npm files
8
+ - Updated dependencies
9
+ - @veloxts/auth@0.6.27
10
+ - @veloxts/core@0.6.27
11
+ - @veloxts/orm@0.6.27
12
+ - @veloxts/router@0.6.27
13
+ - @veloxts/validation@0.6.27
14
+
15
+ ## 0.6.26
16
+
17
+ ### Patch Changes
18
+
19
+ - docs(mcp): add README and GUIDE, docs(web): simplify README and create concise GUIDE
20
+ - Updated dependencies
21
+ - @veloxts/auth@0.6.26
22
+ - @veloxts/core@0.6.26
23
+ - @veloxts/orm@0.6.26
24
+ - @veloxts/router@0.6.26
25
+ - @veloxts/validation@0.6.26
26
+
27
+ ## 0.6.25
28
+
29
+ ### Patch Changes
30
+
31
+ - docs(create): add guide for React Server Components setup
32
+ - Updated dependencies
33
+ - @veloxts/auth@0.6.25
34
+ - @veloxts/core@0.6.25
35
+ - @veloxts/orm@0.6.25
36
+ - @veloxts/router@0.6.25
37
+ - @veloxts/validation@0.6.25
38
+
39
+ ## 0.6.24
40
+
41
+ ### Patch Changes
42
+
43
+ - clarify installation paths and package contents
44
+ - Updated dependencies
45
+ - @veloxts/auth@0.6.24
46
+ - @veloxts/core@0.6.24
47
+ - @veloxts/orm@0.6.24
48
+ - @veloxts/router@0.6.24
49
+ - @veloxts/validation@0.6.24
50
+
51
+ ## 0.6.23
52
+
53
+ ### Patch Changes
54
+
55
+ - add defineContract for improved type inference DX
56
+ - Updated dependencies
57
+ - @veloxts/auth@0.6.23
58
+ - @veloxts/core@0.6.23
59
+ - @veloxts/orm@0.6.23
60
+ - @veloxts/router@0.6.23
61
+ - @veloxts/validation@0.6.23
62
+
63
+ ## 0.6.22
64
+
65
+ ### Patch Changes
66
+
67
+ - support {method, path} route entry format
68
+ - Updated dependencies
69
+ - @veloxts/auth@0.6.22
70
+ - @veloxts/core@0.6.22
71
+ - @veloxts/orm@0.6.22
72
+ - @veloxts/router@0.6.22
73
+ - @veloxts/validation@0.6.22
74
+
75
+ ## 0.6.21
76
+
77
+ ### Patch Changes
78
+
79
+ - separate schemas from procedures for browser-safe import
80
+ - Updated dependencies
81
+ - @veloxts/auth@0.6.21
82
+ - @veloxts/core@0.6.21
83
+ - @veloxts/orm@0.6.21
84
+ - @veloxts/router@0.6.21
85
+ - @veloxts/validation@0.6.21
86
+
87
+ ## 0.6.20
88
+
89
+ ### Patch Changes
90
+
91
+ - add Fastify ecosystem stubs and debuglog to util
92
+ - Updated dependencies
93
+ - @veloxts/auth@0.6.20
94
+ - @veloxts/core@0.6.20
95
+ - @veloxts/orm@0.6.20
96
+ - @veloxts/router@0.6.20
97
+ - @veloxts/validation@0.6.20
98
+
99
+ ## 0.6.19
100
+
101
+ ### Patch Changes
102
+
103
+ - restore dotenv stub for browser compatibility
104
+ - Updated dependencies
105
+ - @veloxts/auth@0.6.19
106
+ - @veloxts/core@0.6.19
107
+ - @veloxts/orm@0.6.19
108
+ - @veloxts/router@0.6.19
109
+ - @veloxts/validation@0.6.19
110
+
111
+ ## 0.6.18
112
+
113
+ ### Patch Changes
114
+
115
+ - add node:fs/promises stub and fix esbuild plugin
116
+ - Updated dependencies
117
+ - @veloxts/auth@0.6.18
118
+ - @veloxts/core@0.6.18
119
+ - @veloxts/orm@0.6.18
120
+ - @veloxts/router@0.6.18
121
+ - @veloxts/validation@0.6.18
122
+
123
+ ## 0.6.17
124
+
125
+ ### Patch Changes
126
+
127
+ - remove optimizeDeps.exclude to fix CJS/ESM interop
128
+ - Updated dependencies
129
+ - @veloxts/auth@0.6.17
130
+ - @veloxts/core@0.6.17
131
+ - @veloxts/orm@0.6.17
132
+ - @veloxts/router@0.6.17
133
+ - @veloxts/validation@0.6.17
134
+
135
+ ## 0.6.16
136
+
137
+ ### Patch Changes
138
+
139
+ - add stubs for Fastify ecosystem packages
140
+ - Updated dependencies
141
+ - @veloxts/auth@0.6.16
142
+ - @veloxts/core@0.6.16
143
+ - @veloxts/orm@0.6.16
144
+ - @veloxts/router@0.6.16
145
+ - @veloxts/validation@0.6.16
146
+
147
+ ## 0.6.15
148
+
149
+ ### Patch Changes
150
+
151
+ - implement three-layer Node.js stubbing for Vite
152
+ - Updated dependencies
153
+ - @veloxts/auth@0.6.15
154
+ - @veloxts/core@0.6.15
155
+ - @veloxts/orm@0.6.15
156
+ - @veloxts/router@0.6.15
157
+ - @veloxts/validation@0.6.15
158
+
159
+ ## 0.6.14
160
+
161
+ ### Patch Changes
162
+
163
+ - stub dotenv as virtual module instead of process shims
164
+ - Updated dependencies
165
+ - @veloxts/auth@0.6.14
166
+ - @veloxts/core@0.6.14
167
+ - @veloxts/orm@0.6.14
168
+ - @veloxts/router@0.6.14
169
+ - @veloxts/validation@0.6.14
170
+
171
+ ## 0.6.13
172
+
173
+ ### Patch Changes
174
+
175
+ - add process.argv stub for dotenv browser compatibility
176
+ - Updated dependencies
177
+ - @veloxts/auth@0.6.13
178
+ - @veloxts/core@0.6.13
179
+ - @veloxts/orm@0.6.13
180
+ - @veloxts/router@0.6.13
181
+ - @veloxts/validation@0.6.13
182
+
183
+ ## 0.6.12
184
+
185
+ ### Patch Changes
186
+
187
+ - Fixes the "process is not defined" error from dotenv
188
+ - Updated dependencies
189
+ - @veloxts/auth@0.6.12
190
+ - @veloxts/core@0.6.12
191
+ - @veloxts/orm@0.6.12
192
+ - @veloxts/router@0.6.12
193
+ - @veloxts/validation@0.6.12
194
+
195
+ ## 0.6.11
196
+
197
+ ### Patch Changes
198
+
199
+ - add Vite plugin for Node.js module stubs
200
+ - Updated dependencies
201
+ - @veloxts/auth@0.6.11
202
+ - @veloxts/core@0.6.11
203
+ - @veloxts/orm@0.6.11
204
+ - @veloxts/router@0.6.11
205
+ - @veloxts/validation@0.6.11
206
+
207
+ ## 0.6.10
208
+
209
+ ### Patch Changes
210
+
211
+ - use import() type syntax for AppRouter
212
+ - Updated dependencies
213
+ - @veloxts/auth@0.6.10
214
+ - @veloxts/core@0.6.10
215
+ - @veloxts/orm@0.6.10
216
+ - @veloxts/router@0.6.10
217
+ - @veloxts/validation@0.6.10
218
+
219
+ ## 0.6.9
220
+
221
+ ### Patch Changes
222
+
223
+ - isolate auth procedures from database imports
224
+ - Updated dependencies
225
+ - @veloxts/auth@0.6.9
226
+ - @veloxts/core@0.6.9
227
+ - @veloxts/orm@0.6.9
228
+ - @veloxts/router@0.6.9
229
+ - @veloxts/validation@0.6.9
230
+
231
+ ## 0.6.8
232
+
233
+ ### Patch Changes
234
+
235
+ - prevent dotenv from leaking into browser bundle
236
+ - Updated dependencies
237
+ - @veloxts/auth@0.6.8
238
+ - @veloxts/core@0.6.8
239
+ - @veloxts/orm@0.6.8
240
+ - @veloxts/router@0.6.8
241
+ - @veloxts/validation@0.6.8
242
+
243
+ ## 0.6.7
244
+
245
+ ### Patch Changes
246
+
247
+ - better-sqlite3 versions mismatch fix
248
+ - Updated dependencies
249
+ - @veloxts/auth@0.6.7
250
+ - @veloxts/core@0.6.7
251
+ - @veloxts/orm@0.6.7
252
+ - @veloxts/router@0.6.7
253
+ - @veloxts/validation@0.6.7
254
+
255
+ ## 0.6.6
256
+
257
+ ### Patch Changes
258
+
259
+ - ensure the web app never imports server-side code paths
260
+ - Updated dependencies
261
+ - @veloxts/auth@0.6.6
262
+ - @veloxts/core@0.6.6
263
+ - @veloxts/orm@0.6.6
264
+ - @veloxts/router@0.6.6
265
+ - @veloxts/validation@0.6.6
266
+
267
+ ## 0.6.5
268
+
269
+ ### Patch Changes
270
+
271
+ - move @prisma/client-runtime-utils to root package.json
272
+ - Updated dependencies
273
+ - @veloxts/auth@0.6.5
274
+ - @veloxts/core@0.6.5
275
+ - @veloxts/orm@0.6.5
276
+ - @veloxts/router@0.6.5
277
+ - @veloxts/validation@0.6.5
278
+
279
+ ## 0.6.4
280
+
281
+ ### Patch Changes
282
+
283
+ - add @prisma/client-runtime-utils dependency
284
+ - Updated dependencies
285
+ - @veloxts/auth@0.6.4
286
+ - @veloxts/core@0.6.4
287
+ - @veloxts/orm@0.6.4
288
+ - @veloxts/router@0.6.4
289
+ - @veloxts/validation@0.6.4
290
+
291
+ ## 0.6.3
292
+
293
+ ### Patch Changes
294
+
295
+ - Add workspaces field to root package.json template + Fix Prisma ESM/CJS import for Node.js v24
296
+ - Updated dependencies
297
+ - @veloxts/auth@0.6.3
298
+ - @veloxts/core@0.6.3
299
+ - @veloxts/orm@0.6.3
300
+ - @veloxts/router@0.6.3
301
+ - @veloxts/validation@0.6.3
302
+
303
+ ## 0.6.2
304
+
305
+ ### Patch Changes
306
+
307
+ - add server actions, removed some deprecated and other chore
308
+ - Updated dependencies
309
+ - @veloxts/auth@0.6.2
310
+ - @veloxts/core@0.6.2
311
+ - @veloxts/orm@0.6.2
312
+ - @veloxts/router@0.6.2
313
+ - @veloxts/validation@0.6.2
314
+
315
+ ## 0.6.1
316
+
317
+ ### Patch Changes
318
+
319
+ - route groups for file-based routing; add dynamic route support with [param] segments
320
+ - Updated dependencies
321
+ - @veloxts/auth@0.6.1
322
+ - @veloxts/core@0.6.1
323
+ - @veloxts/orm@0.6.1
324
+ - @veloxts/router@0.6.1
325
+ - @veloxts/validation@0.6.1
326
+
327
+ ## 0.6.0
328
+
329
+ ### Minor Changes
330
+
331
+ - RSC streaming, dynamic routes, Vinxi integration
332
+
333
+ ### Patch Changes
334
+
335
+ - Updated dependencies
336
+ - @veloxts/auth@0.6.0
337
+ - @veloxts/core@0.6.0
338
+ - @veloxts/orm@0.6.0
339
+ - @veloxts/router@0.6.0
340
+ - @veloxts/validation@0.6.0
341
+
342
+ ## 0.5.0
343
+
344
+ ### Minor Changes
345
+
346
+ - Auto-register procedures + inject Prisma models feature
347
+
348
+ ### Patch Changes
349
+
350
+ - Updated dependencies
351
+ - @veloxts/auth@0.5.0
352
+ - @veloxts/core@0.5.0
353
+ - @veloxts/orm@0.5.0
354
+ - @veloxts/router@0.5.0
355
+ - @veloxts/validation@0.5.0
356
+
357
+ ## 0.4.21
358
+
359
+ ### Patch Changes
360
+
361
+ - format Prisma default values correctly by type
362
+ - Updated dependencies
363
+ - @veloxts/auth@0.4.21
364
+ - @veloxts/core@0.4.21
365
+ - @veloxts/orm@0.4.21
366
+ - @veloxts/router@0.4.21
367
+ - @veloxts/validation@0.4.21
368
+
369
+ ## 0.4.20
370
+
371
+ ### Patch Changes
372
+
373
+ - import consolidation: update import paths for `@veloxts/velox`
374
+ - Updated dependencies
375
+ - @veloxts/auth@0.4.20
376
+ - @veloxts/core@0.4.20
377
+ - @veloxts/orm@0.4.20
378
+ - @veloxts/router@0.4.20
379
+ - @veloxts/validation@0.4.20
380
+
381
+ ## 0.4.19
382
+
383
+ ### Patch Changes
384
+
385
+ - update default dev server port to 3030
386
+ - Updated dependencies
387
+ - @veloxts/auth@0.4.19
388
+ - @veloxts/core@0.4.19
389
+ - @veloxts/orm@0.4.19
390
+ - @veloxts/router@0.4.19
391
+ - @veloxts/validation@0.4.19
392
+
393
+ ## 0.4.18
394
+
395
+ ### Patch Changes
396
+
397
+ - introduce interactive field menu and templates for resource generation
398
+ - Updated dependencies
399
+ - @veloxts/auth@0.4.18
400
+ - @veloxts/core@0.4.18
401
+ - @veloxts/orm@0.4.18
402
+ - @veloxts/router@0.4.18
403
+ - @veloxts/validation@0.4.18
404
+
405
+ ## 0.4.17
406
+
407
+ ### Patch Changes
408
+
409
+ - add interactive field prompts for resource generation
410
+ - Updated dependencies
411
+ - @veloxts/auth@0.4.17
412
+ - @veloxts/core@0.4.17
413
+ - @veloxts/orm@0.4.17
414
+ - @veloxts/router@0.4.17
415
+ - @veloxts/validation@0.4.17
416
+
417
+ ## 0.4.16
418
+
419
+ ### Patch Changes
420
+
421
+ - fixed velox procedures list
422
+ - Updated dependencies
423
+ - @veloxts/auth@0.4.16
424
+ - @veloxts/core@0.4.16
425
+ - @veloxts/orm@0.4.16
426
+ - @veloxts/router@0.4.16
427
+ - @veloxts/validation@0.4.16
428
+
429
+ ## 0.4.15
430
+
431
+ ### Patch Changes
432
+
433
+ - chore lint fixes
434
+ - Updated dependencies
435
+ - @veloxts/auth@0.4.15
436
+ - @veloxts/core@0.4.15
437
+ - @veloxts/orm@0.4.15
438
+ - @veloxts/router@0.4.15
439
+ - @veloxts/validation@0.4.15
440
+
441
+ ## 0.4.14
442
+
443
+ ### Patch Changes
444
+
445
+ - fixed proxy-type inferance and update proxy hooks for optional input handling
446
+ - Updated dependencies
447
+ - @veloxts/auth@0.4.14
448
+ - @veloxts/core@0.4.14
449
+ - @veloxts/orm@0.4.14
450
+ - @veloxts/router@0.4.14
451
+ - @veloxts/validation@0.4.14
452
+
453
+ ## 0.4.13
454
+
455
+ ### Patch Changes
456
+
457
+ - add debug mode to dev server
458
+ - Updated dependencies
459
+ - @veloxts/auth@0.4.13
460
+ - @veloxts/core@0.4.13
461
+ - @veloxts/orm@0.4.13
462
+ - @veloxts/router@0.4.13
463
+ - @veloxts/validation@0.4.13
464
+
465
+ ## 0.4.12
466
+
467
+ ### Patch Changes
468
+
469
+ - preserve type info in trpc template AppRouter export
470
+ - Updated dependencies
471
+ - @veloxts/auth@0.4.12
472
+ - @veloxts/core@0.4.12
473
+ - @veloxts/orm@0.4.12
474
+ - @veloxts/router@0.4.12
475
+ - @veloxts/validation@0.4.12
476
+
477
+ ## 0.4.11
478
+
479
+ ### Patch Changes
480
+
481
+ - fixed api.health.check.useQuery is not a function issue
482
+ - Updated dependencies
483
+ - @veloxts/auth@0.4.11
484
+ - @veloxts/core@0.4.11
485
+ - @veloxts/orm@0.4.11
486
+ - @veloxts/router@0.4.11
487
+ - @veloxts/validation@0.4.11
488
+
489
+ ## 0.4.10
490
+
491
+ ### Patch Changes
492
+
493
+ - fixed ReferenceError: styles is not defined in rpc template
494
+ - Updated dependencies
495
+ - @veloxts/auth@0.4.10
496
+ - @veloxts/core@0.4.10
497
+ - @veloxts/orm@0.4.10
498
+ - @veloxts/router@0.4.10
499
+ - @veloxts/validation@0.4.10
500
+
501
+ ## 0.4.7
502
+
503
+ ### Patch Changes
504
+
505
+ - Add dynamic headers and routes config to client
506
+ - Updated dependencies
507
+ - @veloxts/auth@0.4.7
508
+ - @veloxts/core@0.4.7
509
+ - @veloxts/orm@0.4.7
510
+ - @veloxts/router@0.4.7
511
+ - @veloxts/validation@0.4.7
512
+
513
+ ## 0.4.6
514
+
515
+ ### Patch Changes
516
+
517
+ - Fix broken npm packages - republish with correct dependencies
518
+ - Updated dependencies
519
+ - @veloxts/auth@0.4.6
520
+ - @veloxts/core@0.4.6
521
+ - @veloxts/orm@0.4.6
522
+ - @veloxts/router@0.4.6
523
+ - @veloxts/validation@0.4.6
524
+
525
+ ## 0.4.5
526
+
527
+ ### Patch Changes
528
+
529
+ - b06631b: CI CD npm Trusted Publishing setup
530
+ - Updated dependencies [b06631b]
531
+ - @veloxts/auth@0.4.5
532
+ - @veloxts/core@0.4.5
533
+ - @veloxts/orm@0.4.5
534
+ - @veloxts/router@0.4.5
535
+ - @veloxts/validation@0.4.5
536
+
537
+ ## 0.4.4
538
+
539
+ ### Patch Changes
540
+
541
+ - 05ae1a5: Update to boilerplate, work in progress
542
+ - 9961b52: full-stack React frontend implementation
543
+ - Updated dependencies [05ae1a5]
544
+ - Updated dependencies [9961b52]
545
+ - @veloxts/auth@0.4.4
546
+ - @veloxts/core@0.4.4
547
+ - @veloxts/orm@0.4.4
548
+ - @veloxts/router@0.4.4
549
+ - @veloxts/validation@0.4.4
550
+
551
+ ## 0.4.3
552
+
553
+ ### Patch Changes
554
+
555
+ - ef8d5d0: Dynamically load VeloxTS version from `package.json` in shared template configuration
556
+ - Updated dependencies [ef8d5d0]
557
+ - @veloxts/auth@0.4.3
558
+ - @veloxts/core@0.4.3
559
+ - @veloxts/orm@0.4.3
560
+ - @veloxts/router@0.4.3
561
+ - @veloxts/validation@0.4.3
562
+
563
+ ## 0.4.2
564
+
565
+ ### Patch Changes
566
+
567
+ - 5b4f02c: Updated documentations
568
+ - 0d8d775: Updated guides and readme files
569
+ - Updated dependencies [5b4f02c]
570
+ - Updated dependencies [0d8d775]
571
+ - @veloxts/auth@0.4.2
572
+ - @veloxts/core@0.4.2
573
+ - @veloxts/orm@0.4.2
574
+ - @veloxts/router@0.4.2
575
+ - @veloxts/validation@0.4.2
576
+
577
+ ## 0.4.1
578
+
579
+ ### Patch Changes
580
+
581
+ - 0eea918: Completed CLI generators
582
+ - Updated dependencies [0eea918]
583
+ - @veloxts/auth@0.4.1
584
+ - @veloxts/core@0.4.1
585
+ - @veloxts/orm@0.4.1
586
+ - @veloxts/router@0.4.1
587
+ - @veloxts/validation@0.4.1
588
+
589
+ ## 0.4.0
590
+
591
+ ### Minor Changes
592
+
593
+ - b478fee: Performance Benchmarks | 34k req/s, <1ms p50 latency, 75MB memory, 530ms startup
594
+
595
+ ### Patch Changes
596
+
597
+ - Updated dependencies [b478fee]
598
+ - @veloxts/auth@0.4.0
599
+ - @veloxts/core@0.4.0
600
+ - @veloxts/orm@0.4.0
601
+ - @veloxts/router@0.4.0
602
+ - @veloxts/validation@0.4.0
603
+
604
+ ## 0.3.6
605
+
606
+ ### Patch Changes
607
+
608
+ - 929f2ab: Interactive CLI setup
609
+ - Updated dependencies [929f2ab]
610
+ - @veloxts/auth@0.3.6
611
+ - @veloxts/core@0.3.6
612
+ - @veloxts/orm@0.3.6
613
+ - @veloxts/router@0.3.6
614
+ - @veloxts/validation@0.3.6
615
+
616
+ ## 0.3.5
617
+
618
+ ### Patch Changes
619
+
620
+ - 658e83f: @veloxts/auth, Full REST Support, Better error messages, Type tests with tsd
621
+ - Updated dependencies [658e83f]
622
+ - @veloxts/auth@0.3.5
623
+ - @veloxts/core@0.3.5
624
+ - @veloxts/orm@0.3.5
625
+ - @veloxts/router@0.3.5
626
+ - @veloxts/validation@0.3.5
627
+
628
+ ## 0.3.4
629
+
630
+ ### Patch Changes
631
+
632
+ - 65ef3e7: DI container and Auth Guards
633
+ - Updated dependencies [65ef3e7]
634
+ - @veloxts/auth@0.3.4
635
+ - @veloxts/core@0.3.4
636
+ - @veloxts/orm@0.3.4
637
+ - @veloxts/router@0.3.4
638
+ - @veloxts/validation@0.3.4
639
+
640
+ ## 0.3.3
641
+
642
+ ### Patch Changes
643
+
644
+ - 4ee103b: Full REST support PUT, PATCH and DELETE
645
+ - Updated dependencies [4ee103b]
646
+ - @veloxts/auth@0.3.3
647
+ - @veloxts/core@0.3.3
648
+ - @veloxts/orm@0.3.3
649
+ - @veloxts/router@0.3.3
650
+ - @veloxts/validation@0.3.3
651
+
652
+ ## 0.3.2
653
+
654
+ ### Patch Changes
655
+
656
+ - abf270e: Dynamically set core `VELOX_VERSION` from package.json
657
+ - Updated dependencies [abf270e]
658
+ - @veloxts/auth@0.3.2
659
+ - @veloxts/core@0.3.2
660
+ - @veloxts/orm@0.3.2
661
+ - @veloxts/router@0.3.2
662
+ - @veloxts/validation@0.3.2
663
+
664
+ ## 0.3.1
665
+
666
+ ### Patch Changes
667
+
668
+ - cb9806e: Fixed the value for VELOXTS_VERSION in create app template
669
+ - Updated dependencies [cb9806e]
670
+ - @veloxts/auth@0.3.1
671
+ - @veloxts/core@0.3.1
672
+ - @veloxts/orm@0.3.1
673
+ - @veloxts/router@0.3.1
674
+ - @veloxts/validation@0.3.1
675
+
676
+ ## 0.3.0
677
+
678
+ ### Minor Changes
679
+
680
+ - 1adce10: Introduced an umbrella package for server side packages: @veloxts/velox
681
+
682
+ ### Patch Changes
683
+
684
+ - Updated dependencies [1adce10]
685
+ - @veloxts/auth@0.3.0
686
+ - @veloxts/core@0.3.0
687
+ - @veloxts/orm@0.3.0
688
+ - @veloxts/router@0.3.0
689
+ - @veloxts/validation@0.3.0
690
+
691
+ ## 0.2.2
692
+
693
+ ### Patch Changes
694
+
695
+ - Version bump to sync with create-velox-app native module fix
696
+ - Updated dependencies
697
+ - @veloxts/core@0.2.2
698
+ - @veloxts/validation@0.2.2
699
+ - @veloxts/orm@0.2.2
700
+ - @veloxts/router@0.2.2
701
+ - @veloxts/auth@0.2.2
702
+
703
+ ## 0.2.0
704
+
705
+ ### Minor Changes
706
+
707
+ - 9404976: fix Prisma client generation. README adjustments
708
+
709
+ ### Patch Changes
710
+
711
+ - Updated dependencies [9404976]
712
+ - @veloxts/validation@0.2.0
713
+ - @veloxts/router@0.2.0
714
+ - @veloxts/auth@0.2.0
715
+ - @veloxts/core@0.2.0
716
+ - @veloxts/orm@0.2.0
717
+
718
+ ## 0.1.1
719
+
720
+ ### Patch Changes
721
+
722
+ - Fix Prisma client generation in scaffolder
723
+
724
+ - Added automatic Prisma client generation after dependency installation in create-velox-app
725
+ - Fixed database template to validate DATABASE_URL environment variable
726
+ - Added alpha release warning to all package READMEs
727
+ - Fixed TypeScript type for registerTRPCPlugin to accept FastifyInstance
728
+ - Updated playground app to use Prisma 7.x custom output path
729
+
730
+ - Updated dependencies
731
+ - @veloxts/core@0.1.1
732
+ - @veloxts/router@0.1.1
733
+ - @veloxts/validation@0.1.1
734
+ - @veloxts/orm@0.1.1
735
+ - @veloxts/auth@0.1.1
package/GUIDE.md ADDED
@@ -0,0 +1,239 @@
1
+ # @veloxts/cli
2
+
3
+ Command-line interface for VeloxTS Framework.
4
+
5
+ ## Installation
6
+
7
+ Automatically installed when creating a new VeloxTS project:
8
+
9
+ ```bash
10
+ npx create-velox-app my-app
11
+ ```
12
+
13
+ Or add to an existing project:
14
+
15
+ ```bash
16
+ npm install -D @veloxts/cli
17
+ ```
18
+
19
+ ## Commands
20
+
21
+ ### velox dev
22
+
23
+ Start development server with Hot Module Replacement (HMR):
24
+
25
+ ```bash
26
+ velox dev # Start with HMR (default port: 3030)
27
+ velox dev --port 4000 # Custom port
28
+ velox dev --no-hmr # Disable HMR
29
+ velox dev --verbose # Enable debug output
30
+ ```
31
+
32
+ HMR features:
33
+ - Fast, efficient reloads with sub-second restart times
34
+ - Precise timing metrics (startup, reload, total uptime)
35
+ - Smart error classification with actionable suggestions
36
+ - Automatic `velox:ready` IPC integration
37
+
38
+ Configure HMR boundaries in `package.json`:
39
+
40
+ ```json
41
+ {
42
+ "hotHook": {
43
+ "boundaries": [
44
+ "src/procedures/**/*.ts",
45
+ "src/schemas/**/*.ts",
46
+ "src/handlers/**/*.ts"
47
+ ]
48
+ }
49
+ }
50
+ ```
51
+
52
+ Add server ready signal for accurate timing:
53
+
54
+ ```typescript
55
+ await app.start();
56
+
57
+ // Send ready signal to CLI
58
+ if (process.send) {
59
+ process.send({ type: 'velox:ready' });
60
+ }
61
+ ```
62
+
63
+ ### velox migrate
64
+
65
+ Run database migrations using Prisma:
66
+
67
+ ```bash
68
+ velox migrate # Apply pending migrations
69
+ velox migrate --force # Force push schema (dev only)
70
+ velox migrate --deploy # Deploy migrations (production)
71
+ ```
72
+
73
+ ### velox db:seed
74
+
75
+ Seed database with test or initial data:
76
+
77
+ ```bash
78
+ velox db:seed # Run all seeders
79
+ velox db:seed UserSeeder # Run specific seeder
80
+ velox db:seed --fresh # Truncate tables first
81
+ velox db:seed --dry-run # Preview without executing
82
+ velox db:seed --verbose # Show debug output
83
+ ```
84
+
85
+ ### velox make
86
+
87
+ Generate code from templates:
88
+
89
+ ```bash
90
+ velox make procedure users # Scaffold procedure
91
+ velox make schema user # Scaffold Zod schema
92
+ velox make seeder user # Scaffold database seeder
93
+ velox make factory user # Scaffold model factory
94
+ ```
95
+
96
+ ## Database Seeding
97
+
98
+ ### Creating Seeders
99
+
100
+ ```bash
101
+ velox make seeder user
102
+ ```
103
+
104
+ Creates `src/database/seeders/UserSeeder.ts`:
105
+
106
+ ```typescript
107
+ import type { Seeder, SeederContext } from '@veloxts/cli';
108
+
109
+ export const UserSeeder: Seeder = {
110
+ name: 'UserSeeder',
111
+ dependencies: [],
112
+ environments: ['development', 'test'],
113
+
114
+ async run({ db, factory, log }) {
115
+ log.info('Seeding users...');
116
+
117
+ await db.user.createMany({
118
+ data: [
119
+ { email: 'admin@example.com', name: 'Admin', role: 'admin' },
120
+ { email: 'user@example.com', name: 'User', role: 'user' },
121
+ ],
122
+ });
123
+
124
+ log.success('Created 2 users');
125
+ },
126
+
127
+ async truncate({ db, log }) {
128
+ await db.user.deleteMany();
129
+ },
130
+ };
131
+ ```
132
+
133
+ ### Creating Factories
134
+
135
+ ```bash
136
+ velox make factory user
137
+ ```
138
+
139
+ Creates `src/database/factories/UserFactory.ts`:
140
+
141
+ ```typescript
142
+ import { BaseFactory, type PrismaClientLike } from '@veloxts/cli';
143
+ import { faker } from '@faker-js/faker';
144
+
145
+ export class UserFactory extends BaseFactory<UserInput> {
146
+ readonly modelName = 'user';
147
+
148
+ constructor(prisma: PrismaClientLike) {
149
+ super(prisma);
150
+
151
+ this.registerState('admin', (attrs) => ({
152
+ ...attrs,
153
+ role: 'admin',
154
+ }));
155
+ }
156
+
157
+ definition(): UserInput {
158
+ return {
159
+ email: faker.internet.email(),
160
+ name: faker.person.fullName(),
161
+ role: 'user',
162
+ };
163
+ }
164
+ }
165
+ ```
166
+
167
+ Usage in seeders:
168
+
169
+ ```typescript
170
+ async run({ factory, log }) {
171
+ // Create 50 users
172
+ await factory.get(UserFactory).createMany(50);
173
+
174
+ // Create 5 admins
175
+ await factory.get(UserFactory)
176
+ .state('admin')
177
+ .createMany(5);
178
+ }
179
+ ```
180
+
181
+ ### Seeder Dependencies
182
+
183
+ Ensure correct execution order:
184
+
185
+ ```typescript
186
+ export const PostSeeder: Seeder = {
187
+ name: 'PostSeeder',
188
+ dependencies: ['UserSeeder'], // Runs after UserSeeder
189
+
190
+ async run({ db, factory, log }) {
191
+ const users = await db.user.findMany();
192
+
193
+ for (const user of users) {
194
+ await factory.get(PostFactory).createMany(5, {
195
+ authorId: user.id,
196
+ });
197
+ }
198
+ },
199
+ };
200
+ ```
201
+
202
+ ## HMR Configuration
203
+
204
+ Add to `package.json`:
205
+
206
+ ```json
207
+ {
208
+ "hotHook": {
209
+ "boundaries": [
210
+ "src/procedures/**/*.ts",
211
+ "src/schemas/**/*.ts",
212
+ "src/config/**/*.ts"
213
+ ]
214
+ }
215
+ }
216
+ ```
217
+
218
+ Add graceful shutdown:
219
+
220
+ ```typescript
221
+ const shutdown = async () => {
222
+ await prisma.$disconnect();
223
+ process.exit(0);
224
+ };
225
+
226
+ process.on('SIGTERM', shutdown);
227
+ process.on('SIGINT', shutdown);
228
+ ```
229
+
230
+ ## Learn More
231
+
232
+ - [@veloxts/core](https://www.npmjs.com/package/@veloxts/core) - Application framework
233
+ - [@veloxts/router](https://www.npmjs.com/package/@veloxts/router) - Procedures
234
+ - [@veloxts/orm](https://www.npmjs.com/package/@veloxts/orm) - Database
235
+ - [VeloxTS Framework](https://www.npmjs.com/package/@veloxts/velox) - Complete framework
236
+
237
+ ## License
238
+
239
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@veloxts/cli",
3
- "version": "0.6.26",
3
+ "version": "0.6.27",
4
4
  "description": "Developer tooling and CLI commands for VeloxTS framework",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -16,7 +16,10 @@
16
16
  },
17
17
  "files": [
18
18
  "dist",
19
- "README.md"
19
+ "README.md",
20
+ "GUIDE.md",
21
+ "LICENSE",
22
+ "CHANGELOG.md"
20
23
  ],
21
24
  "tsd": {
22
25
  "directory": "src/migrations/__type-tests__",
@@ -36,11 +39,11 @@
36
39
  "picocolors": "1.1.1",
37
40
  "pluralize": "8.0.0",
38
41
  "tsx": "4.21.0",
39
- "@veloxts/orm": "0.6.26",
40
- "@veloxts/router": "0.6.26",
41
- "@veloxts/auth": "0.6.26",
42
- "@veloxts/validation": "0.6.26",
43
- "@veloxts/core": "0.6.26"
42
+ "@veloxts/auth": "0.6.27",
43
+ "@veloxts/core": "0.6.27",
44
+ "@veloxts/orm": "0.6.27",
45
+ "@veloxts/router": "0.6.27",
46
+ "@veloxts/validation": "0.6.27"
44
47
  },
45
48
  "peerDependencies": {
46
49
  "@prisma/client": ">=7.0.0"