ralph-gate 0.3.2 → 0.3.3
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 +11 -24
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,35 +23,19 @@ npm install -D ralph-gate
|
|
|
23
23
|
|
|
24
24
|
## Quick Start
|
|
25
25
|
|
|
26
|
-
1.
|
|
26
|
+
1. Initialize Ralph Gate in your project:
|
|
27
27
|
|
|
28
|
-
```
|
|
29
|
-
|
|
30
|
-
"gates": [
|
|
31
|
-
{ "name": "lint", "command": "npm run lint", "order": 10 },
|
|
32
|
-
{ "name": "typecheck", "command": "npm run typecheck", "order": 20 },
|
|
33
|
-
{ "name": "test", "command": "npm test", "order": 30 },
|
|
34
|
-
{ "name": "build", "command": "npm run build", "order": 40 }
|
|
35
|
-
]
|
|
36
|
-
}
|
|
28
|
+
```bash
|
|
29
|
+
npx ralph-gate init
|
|
37
30
|
```
|
|
38
31
|
|
|
39
|
-
|
|
32
|
+
This command automatically:
|
|
40
33
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
"Stop": [
|
|
45
|
-
{
|
|
46
|
-
"type": "command",
|
|
47
|
-
"command": "npx ralph-gate --hook"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
```
|
|
34
|
+
- Generates a `gate.config.json` based on your project scripts
|
|
35
|
+
- Configures the Claude Code verification hook
|
|
36
|
+
- Updates `.gitignore`
|
|
53
37
|
|
|
54
|
-
|
|
38
|
+
2. Now when Claude Code tries to stop, your gates will run first!
|
|
55
39
|
|
|
56
40
|
## Configuration
|
|
57
41
|
|
|
@@ -109,6 +93,9 @@ npm install -D ralph-gate
|
|
|
109
93
|
## CLI Reference
|
|
110
94
|
|
|
111
95
|
```bash
|
|
96
|
+
# Initialize project configuration
|
|
97
|
+
npx ralph-gate init
|
|
98
|
+
|
|
112
99
|
# Run all gates with console output
|
|
113
100
|
npx ralph-gate
|
|
114
101
|
|