vibe-validate 0.17.0-rc4 → 0.17.1-rc.2

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.
@@ -0,0 +1,126 @@
1
+ # Configure Project: Adopt vibe-validate for Validation Guardrails
2
+
3
+ ## Overview
4
+
5
+ Configure your project to use vibe-validate for comprehensive validation with:
6
+ - **Pre-commit validation** guardrails (prevent broken code from being committed)
7
+ - **Git-aware caching** (312x speedup)
8
+ - **Team-wide consistency** (shared validation configuration)
9
+ - **CI/CD integration** (same validation locally and in CI)
10
+
11
+ ## Quick Start
12
+
13
+ ```bash
14
+ # Install in project
15
+ npm install vibe-validate
16
+
17
+ # Generate configuration for project type
18
+ vv init
19
+
20
+ # Run validation
21
+ vv validate
22
+ ```
23
+
24
+ ## What Gets Created
25
+
26
+ The `vv init` command generates:
27
+ - `vibe-validate.config.yaml` - Validation configuration
28
+ - `.husky/pre-commit` - Pre-commit hook (optional)
29
+ - `.github/workflows/validate.yml` - CI workflow (optional)
30
+
31
+ ## Configuration Example
32
+
33
+ ```yaml
34
+ # vibe-validate.config.yaml
35
+ version: 1
36
+ git:
37
+ mainBranch: main
38
+
39
+ validation:
40
+ phases:
41
+ - name: Pre-Qualification
42
+ steps:
43
+ - name: TypeScript Type Check
44
+ command: pnpm typecheck
45
+ - name: ESLint Code Quality
46
+ command: pnpm lint
47
+ - name: Build All Packages
48
+ command: pnpm -r build
49
+
50
+ - name: Testing
51
+ steps:
52
+ - name: Unit Tests with Coverage
53
+ command: pnpm test:coverage
54
+ ```
55
+
56
+ ## Core Commands
57
+
58
+ ```bash
59
+ # Run full validation suite
60
+ vv validate
61
+
62
+ # Check cached state (no re-run if code unchanged)
63
+ vv validate --check
64
+
65
+ # Force re-run (ignore cache)
66
+ vv validate --force
67
+
68
+ # View current validation state
69
+ vv state
70
+
71
+ # View validation history
72
+ vv history list
73
+ ```
74
+
75
+ ## Validation Phases
76
+
77
+ Phases run **sequentially**. If a phase fails, subsequent phases are skipped.
78
+
79
+ ```yaml
80
+ validation:
81
+ phases:
82
+ - name: Pre-Qualification # Runs first
83
+ steps: [...]
84
+ - name: Testing # Runs only if Pre-Qualification passes
85
+ steps: [...]
86
+ ```
87
+
88
+ Steps within a phase can run **sequentially** or in **parallel**:
89
+
90
+ ```yaml
91
+ # Sequential (default)
92
+ - name: Build
93
+ steps:
94
+ - name: Install
95
+ command: npm install
96
+ - name: Build
97
+ command: npm run build
98
+
99
+ # Parallel
100
+ - name: Lint and Type Check
101
+ parallel: true
102
+ steps:
103
+ - name: ESLint
104
+ command: npm run lint
105
+ - name: TypeScript
106
+ command: npm run typecheck
107
+ ```
108
+
109
+ ## Pre-Commit Hook Setup
110
+
111
+ ```bash
112
+ # Initialize git hooks
113
+ vv init --hooks
114
+
115
+ # Or manually add to .husky/pre-commit:
116
+ #!/bin/sh
117
+ vv validate --yaml || exit 1
118
+ ```
119
+
120
+ ## Complete Documentation
121
+
122
+ See main project documentation:
123
+ - **Getting Started:** `docs/getting-started.md`
124
+ - **Configuration Reference:** `docs/configuration-reference.md`
125
+ - **CLI Reference:** `docs/cli-reference.md`
126
+ - **CI/CD Integration:** `docs/ci-cd-integration.md`