@gw-tools/gw 0.20.8 → 0.20.11
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 +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -306,24 +306,27 @@ gw init --root /path/to/your/repo.git
|
|
|
306
306
|
|
|
307
307
|
### Example Configuration
|
|
308
308
|
|
|
309
|
-
```
|
|
309
|
+
```jsonc
|
|
310
310
|
{
|
|
311
311
|
"root": "/Users/username/Workspace/my-project.git",
|
|
312
312
|
"defaultBranch": "main",
|
|
313
|
+
// Auto-copy these files when creating new worktrees
|
|
313
314
|
"autoCopyFiles": [".env", "components/agents/.env", "components/ui/.vercel/"],
|
|
314
315
|
"hooks": {
|
|
315
316
|
"add": {
|
|
316
317
|
"pre": ["echo 'Creating worktree: {worktree}'"],
|
|
317
|
-
"post": ["pnpm install", "echo 'Setup complete!'"]
|
|
318
|
-
}
|
|
318
|
+
"post": ["pnpm install", "echo 'Setup complete!'"],
|
|
319
|
+
},
|
|
319
320
|
},
|
|
320
321
|
"cleanThreshold": 7,
|
|
321
322
|
"autoClean": true,
|
|
322
323
|
"updateStrategy": "merge",
|
|
323
|
-
"lastAutoCleanTime": 1706371200000
|
|
324
|
+
"lastAutoCleanTime": 1706371200000, // trailing comma OK
|
|
324
325
|
}
|
|
325
326
|
```
|
|
326
327
|
|
|
328
|
+
**JSONC Support**: Configuration files support JSONC (JSON with Comments) with `//` single-line comments, `/* */` multi-line comments, and trailing commas. When you run `gw init`, it generates a comprehensive self-documenting template with inline documentation for all available options. Active features are shown uncommented while inactive features appear as commented examples with usage patterns.
|
|
329
|
+
|
|
327
330
|
**More Examples**: See the [examples/](./examples/) directory for configuration templates for various project types (Next.js, Node.js API, monorepos, CI/CD, etc.).
|
|
328
331
|
|
|
329
332
|
### Configuration Options
|