servcraft 0.1.7 → 0.2.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/README.md CHANGED
@@ -265,11 +265,13 @@ servcraft init --ts # Use TypeScript (default)
265
265
  servcraft init --esm # Use ES Modules (default)
266
266
  servcraft init --cjs # Use CommonJS
267
267
  servcraft init --db postgresql # Specify database
268
+ servcraft init --dry-run # Preview files without writing
268
269
 
269
270
  # Combined examples
270
271
  servcraft init my-app --js --esm --db postgresql -y # JS + ESM + PostgreSQL
271
272
  servcraft init my-app --js --cjs --db mongodb -y # JS + CommonJS + MongoDB
272
273
  servcraft init my-app --ts --db mysql -y # TypeScript + MySQL
274
+ servcraft init my-app --dry-run -y # Preview without creating
273
275
  ```
274
276
 
275
277
  ### Generate resources
@@ -278,6 +280,7 @@ servcraft init my-app --ts --db mysql -y # TypeScript + MySQL
278
280
  # Generate complete module
279
281
  servcraft generate module product
280
282
  servcraft g m product --prisma # Include Prisma model
283
+ servcraft g m product --dry-run # Preview files
281
284
 
282
285
  # Generate individual files
283
286
  servcraft generate controller user
@@ -291,6 +294,22 @@ servcraft g c user # controller
291
294
  servcraft g s order # service
292
295
  servcraft g r item # repository
293
296
  servcraft g v post # schema/validator
297
+
298
+ # Preview before generating
299
+ servcraft g m product name:string price:number --dry-run
300
+ ```
301
+
302
+ ### List available modules
303
+
304
+ ```bash
305
+ servcraft list # Show all available modules
306
+ servcraft list --installed # Show only installed modules
307
+ servcraft list --available # Show only available modules
308
+ servcraft list --category Security # Filter by category
309
+ servcraft list --json # Output as JSON
310
+
311
+ # Aliases
312
+ servcraft ls # Same as list
294
313
  ```
295
314
 
296
315
  ### Add pre-built modules
@@ -312,7 +331,7 @@ servcraft add feature-flag # Feature flags & A/B testing
312
331
  servcraft add analytics # Prometheus metrics & tracking
313
332
  servcraft add media-processing # Image/video processing
314
333
  servcraft add api-versioning # API version management
315
- servcraft add --list # Show all modules
334
+ servcraft add auth --dry-run # Preview module files
316
335
  ```
317
336
 
318
337
  **Automatic Environment Configuration:**
package/ROADMAP.md CHANGED
@@ -4,7 +4,10 @@ This document outlines the planned features and improvements for Servcraft.
4
4
 
5
5
  ## Version History
6
6
 
7
- - **v0.1.7** (Current) - ESM/CommonJS module system choice
7
+ - **v0.2.0** (Current) - Better error messages, servcraft remove, servcraft doctor (stub)
8
+ - **v0.1.9** - Added `--dry-run` option for all commands (init, add, generate)
9
+ - **v0.1.8** - Added `servcraft list` command
10
+ - **v0.1.7** - ESM/CommonJS module system choice
8
11
  - **v0.1.6.3** - JavaScript/TypeScript support, docs command, bug fixes
9
12
  - **v0.1.6.2** - Fixed empty modules, added config/middleware/utils generators
10
13
  - **v0.1.6.1** - Added @fastify/jwt compatibility fix
@@ -16,19 +19,23 @@ This document outlines the planned features and improvements for Servcraft.
16
19
 
17
20
  ### v0.2.0 - CLI Enhancements
18
21
 
19
- #### `servcraft list`
22
+ #### `servcraft list` ✅ Completed in v0.1.8
20
23
  List available and installed modules.
21
24
  ```bash
22
- servcraft list # List all available modules
23
- servcraft list --installed # List installed modules only
25
+ servcraft list # List all available modules
26
+ servcraft list --installed # List installed modules only
27
+ servcraft list --category Security # Filter by category
28
+ servcraft list --json # Output as JSON
24
29
  ```
25
30
 
26
- #### `--dry-run` Option
31
+ #### `--dry-run` Option ✅ Completed in v0.1.9
27
32
  Preview changes without writing files.
28
33
  ```bash
29
- servcraft init my-app --dry-run
30
- servcraft add auth --dry-run
31
- servcraft generate module users --dry-run
34
+ servcraft init my-app --dry-run # ✅ Implemented
35
+ servcraft add auth --dry-run # ✅ Implemented
36
+ servcraft generate module users --dry-run # ✅ Implemented
37
+ servcraft generate controller users --dry-run # ✅ Implemented
38
+ servcraft generate service users --dry-run # ✅ Implemented
32
39
  ```
33
40
 
34
41
  #### Better Error Messages