@vibe-validate/cli 0.10.3 → 0.12.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 +84 -92
- package/dist/bin.js +137 -20
- package/dist/bin.js.map +1 -1
- package/dist/commands/cleanup.d.ts +4 -0
- package/dist/commands/cleanup.d.ts.map +1 -1
- package/dist/commands/cleanup.js +96 -15
- package/dist/commands/cleanup.js.map +1 -1
- package/dist/commands/config.d.ts +4 -0
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/config.js +83 -15
- package/dist/commands/config.js.map +1 -1
- package/dist/commands/doctor.d.ts +4 -0
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +385 -82
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/generate-workflow.d.ts +6 -2
- package/dist/commands/generate-workflow.d.ts.map +1 -1
- package/dist/commands/generate-workflow.js +188 -33
- package/dist/commands/generate-workflow.js.map +1 -1
- package/dist/commands/history.d.ts +13 -0
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/commands/history.js +415 -0
- package/dist/commands/history.js.map +1 -0
- package/dist/commands/init.d.ts +4 -0
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +252 -109
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/pre-commit.d.ts +4 -0
- package/dist/commands/pre-commit.d.ts.map +1 -1
- package/dist/commands/pre-commit.js +158 -7
- package/dist/commands/pre-commit.js.map +1 -1
- package/dist/commands/state.d.ts +5 -1
- package/dist/commands/state.d.ts.map +1 -1
- package/dist/commands/state.js +192 -23
- package/dist/commands/state.js.map +1 -1
- package/dist/commands/sync-check.d.ts +4 -0
- package/dist/commands/sync-check.d.ts.map +1 -1
- package/dist/commands/sync-check.js +101 -14
- package/dist/commands/sync-check.js.map +1 -1
- package/dist/commands/validate.d.ts +5 -1
- package/dist/commands/validate.d.ts.map +1 -1
- package/dist/commands/validate.js +184 -28
- package/dist/commands/validate.js.map +1 -1
- package/dist/commands/watch-pr.d.ts +10 -0
- package/dist/commands/watch-pr.d.ts.map +1 -0
- package/dist/commands/watch-pr.js +443 -0
- package/dist/commands/watch-pr.js.map +1 -0
- package/dist/schemas/watch-pr-schema.d.ts +261 -0
- package/dist/schemas/watch-pr-schema.d.ts.map +1 -0
- package/dist/schemas/watch-pr-schema.js +58 -0
- package/dist/schemas/watch-pr-schema.js.map +1 -0
- package/dist/scripts/generate-watch-pr-schema.d.ts +12 -0
- package/dist/scripts/generate-watch-pr-schema.d.ts.map +1 -0
- package/dist/scripts/generate-watch-pr-schema.js +35 -0
- package/dist/scripts/generate-watch-pr-schema.js.map +1 -0
- package/dist/services/ci-provider-registry.d.ts +38 -0
- package/dist/services/ci-provider-registry.d.ts.map +1 -0
- package/dist/services/ci-provider-registry.js +53 -0
- package/dist/services/ci-provider-registry.js.map +1 -0
- package/dist/services/ci-provider.d.ts +165 -0
- package/dist/services/ci-provider.d.ts.map +1 -0
- package/dist/services/ci-provider.js +11 -0
- package/dist/services/ci-provider.js.map +1 -0
- package/dist/services/ci-providers/github-actions.d.ts +41 -0
- package/dist/services/ci-providers/github-actions.d.ts.map +1 -0
- package/dist/services/ci-providers/github-actions.js +314 -0
- package/dist/services/ci-providers/github-actions.js.map +1 -0
- package/dist/utils/check-validation.d.ts +7 -4
- package/dist/utils/check-validation.d.ts.map +1 -1
- package/dist/utils/check-validation.js +129 -48
- package/dist/utils/check-validation.js.map +1 -1
- package/dist/utils/config-loader.d.ts +15 -3
- package/dist/utils/config-loader.d.ts.map +1 -1
- package/dist/utils/config-loader.js +61 -17
- package/dist/utils/config-loader.js.map +1 -1
- package/dist/utils/context-detector.d.ts +1 -1
- package/dist/utils/context-detector.js +1 -1
- package/dist/utils/normalize-line-endings.d.ts +53 -0
- package/dist/utils/normalize-line-endings.d.ts.map +1 -0
- package/dist/utils/normalize-line-endings.js +57 -0
- package/dist/utils/normalize-line-endings.js.map +1 -0
- package/dist/utils/run-validation-with-cache.d.ts +48 -0
- package/dist/utils/run-validation-with-cache.d.ts.map +1 -0
- package/dist/utils/run-validation-with-cache.js +123 -0
- package/dist/utils/run-validation-with-cache.js.map +1 -0
- package/dist/utils/runner-adapter.d.ts +1 -0
- package/dist/utils/runner-adapter.d.ts.map +1 -1
- package/dist/utils/runner-adapter.js +25 -17
- package/dist/utils/runner-adapter.js.map +1 -1
- package/dist/utils/setup-checks/gitignore-check.d.ts +10 -15
- package/dist/utils/setup-checks/gitignore-check.d.ts.map +1 -1
- package/dist/utils/setup-checks/gitignore-check.js +20 -138
- package/dist/utils/setup-checks/gitignore-check.js.map +1 -1
- package/dist/utils/template-discovery.d.ts +40 -0
- package/dist/utils/template-discovery.d.ts.map +1 -0
- package/dist/utils/template-discovery.js +136 -0
- package/dist/utils/template-discovery.js.map +1 -0
- package/dist/utils/validate-workflow.d.ts +28 -0
- package/dist/utils/validate-workflow.d.ts.map +1 -0
- package/dist/utils/validate-workflow.js +247 -0
- package/dist/utils/validate-workflow.js.map +1 -0
- package/dist/utils/validation-cache.d.ts +30 -0
- package/dist/utils/validation-cache.d.ts.map +1 -0
- package/dist/utils/validation-cache.js +57 -0
- package/dist/utils/validation-cache.js.map +1 -0
- package/package.json +19 -16
- package/watch-pr-result.schema.json +204 -0
- package/LICENSE +0 -21
package/dist/commands/init.js
CHANGED
|
@@ -3,36 +3,31 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Interactive setup wizard for vibe-validate configuration.
|
|
5
5
|
*/
|
|
6
|
-
import { writeFileSync, existsSync } from 'fs';
|
|
7
|
-
import { join } from 'path';
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
6
|
+
import { writeFileSync, existsSync, readFileSync } from 'fs';
|
|
7
|
+
import { join, dirname } from 'path';
|
|
8
|
+
import { fileURLToPath } from 'url';
|
|
9
|
+
import { stringify as stringifyYaml, parse as parseYaml } from 'yaml';
|
|
10
10
|
import chalk from 'chalk';
|
|
11
11
|
import { configExists } from '../utils/config-loader.js';
|
|
12
12
|
import { detectGitConfig } from '../utils/git-detection.js';
|
|
13
13
|
import { GitignoreSetupCheck } from '../utils/setup-checks/gitignore-check.js';
|
|
14
14
|
import { HooksSetupCheck } from '../utils/setup-checks/hooks-check.js';
|
|
15
15
|
import { WorkflowSetupCheck } from '../utils/setup-checks/workflow-check.js';
|
|
16
|
+
import { discoverTemplates } from '../utils/template-discovery.js';
|
|
16
17
|
export function initCommand(program) {
|
|
17
18
|
program
|
|
18
19
|
.command('init')
|
|
19
20
|
.description('Initialize vibe-validate configuration')
|
|
20
|
-
.option('-
|
|
21
|
+
.option('-t, --template <name>', 'Template to use (minimal|typescript-library|typescript-nodejs|typescript-react)', 'minimal')
|
|
21
22
|
.option('-f, --force', 'Overwrite existing configuration')
|
|
22
23
|
.option('--dry-run', 'Preview changes without writing files')
|
|
23
24
|
.option('--setup-hooks', 'Install pre-commit hook')
|
|
24
25
|
.option('--setup-workflow', 'Create GitHub Actions workflow')
|
|
25
26
|
.option('--fix-gitignore', 'Add state file to .gitignore')
|
|
26
|
-
.option('--migrate', 'Migrate .mjs config to .yaml format')
|
|
27
27
|
.action(async (options) => {
|
|
28
28
|
try {
|
|
29
29
|
const cwd = process.cwd();
|
|
30
30
|
const isDryRun = options.dryRun || false;
|
|
31
|
-
// Handle migration
|
|
32
|
-
if (options.migrate) {
|
|
33
|
-
await handleMigration(cwd, options, isDryRun);
|
|
34
|
-
return;
|
|
35
|
-
}
|
|
36
31
|
// Check if this is a focused operation
|
|
37
32
|
const isFocusedOperation = options.setupHooks || options.setupWorkflow || options.fixGitignore;
|
|
38
33
|
// Handle focused operations
|
|
@@ -130,8 +125,8 @@ async function handleFocusedOperations(cwd, options, isDryRun) {
|
|
|
130
125
|
/**
|
|
131
126
|
* Handle config file initialization
|
|
132
127
|
*
|
|
133
|
-
* Creates a
|
|
134
|
-
*
|
|
128
|
+
* Creates a vibe-validate configuration file by copying the specified template
|
|
129
|
+
* from the config-templates directory and customizing it with auto-detected settings.
|
|
135
130
|
*
|
|
136
131
|
* @param cwd - Current working directory
|
|
137
132
|
* @param options - Init command options
|
|
@@ -145,14 +140,8 @@ async function handleConfigInitialization(cwd, options, isDryRun) {
|
|
|
145
140
|
console.error(chalk.gray(' Use --force to overwrite'));
|
|
146
141
|
process.exit(1);
|
|
147
142
|
}
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
const validPresets = ['typescript-library', 'typescript-nodejs', 'typescript-react'];
|
|
151
|
-
if (!validPresets.includes(preset)) {
|
|
152
|
-
console.error(chalk.red(`❌ Invalid preset: ${preset}`));
|
|
153
|
-
console.error(chalk.gray(` Valid presets: ${validPresets.join(', ')}`));
|
|
154
|
-
process.exit(1);
|
|
155
|
-
}
|
|
143
|
+
// Get template name (defaults to 'minimal')
|
|
144
|
+
const templateName = options.template || 'minimal';
|
|
156
145
|
// Detect git configuration
|
|
157
146
|
const gitConfig = detectGitConfig();
|
|
158
147
|
if (!isDryRun) {
|
|
@@ -165,15 +154,15 @@ async function handleConfigInitialization(cwd, options, isDryRun) {
|
|
|
165
154
|
console.log(chalk.gray('ℹ️ Using default git configuration (main, origin)'));
|
|
166
155
|
}
|
|
167
156
|
}
|
|
168
|
-
// Generate YAML config file content
|
|
169
|
-
const configContent = generateYamlConfig(
|
|
157
|
+
// Generate YAML config file content from template
|
|
158
|
+
const configContent = generateYamlConfig(templateName, gitConfig);
|
|
170
159
|
const configPath = join(cwd, 'vibe-validate.config.yaml');
|
|
171
160
|
if (isDryRun) {
|
|
172
161
|
// Preview mode - show what would be created
|
|
173
162
|
console.log(chalk.blue('🔍 Configuration preview (dry-run):'));
|
|
174
163
|
console.log(chalk.yellow(' Would create:'));
|
|
175
164
|
console.log(chalk.gray(` - ${configPath}`));
|
|
176
|
-
console.log(chalk.gray(` -
|
|
165
|
+
console.log(chalk.gray(` - Template: ${templateName}`));
|
|
177
166
|
console.log();
|
|
178
167
|
console.log(chalk.yellow('💡 Run without --dry-run to create configuration'));
|
|
179
168
|
process.exit(0);
|
|
@@ -182,7 +171,7 @@ async function handleConfigInitialization(cwd, options, isDryRun) {
|
|
|
182
171
|
writeFileSync(configPath, configContent, 'utf-8');
|
|
183
172
|
console.log(chalk.green('✅ Configuration file created successfully'));
|
|
184
173
|
console.log(chalk.blue(`📋 Created: ${configPath}`));
|
|
185
|
-
console.log(chalk.gray(`
|
|
174
|
+
console.log(chalk.gray(` Template: ${templateName}`));
|
|
186
175
|
console.log();
|
|
187
176
|
console.log(chalk.yellow('Next steps:'));
|
|
188
177
|
console.log(chalk.gray(' 1. Review and customize vibe-validate.config.yaml'));
|
|
@@ -193,103 +182,257 @@ async function handleConfigInitialization(cwd, options, isDryRun) {
|
|
|
193
182
|
process.exit(0);
|
|
194
183
|
}
|
|
195
184
|
/**
|
|
196
|
-
*
|
|
185
|
+
* Get the path to the config-templates directory
|
|
197
186
|
*
|
|
198
|
-
*
|
|
199
|
-
* and git configuration values.
|
|
187
|
+
* Works both in development (from source) and when installed as npm package.
|
|
200
188
|
*
|
|
201
|
-
* @
|
|
202
|
-
* @param gitConfig - Detected git configuration
|
|
203
|
-
* @returns YAML configuration file content
|
|
189
|
+
* @returns Absolute path to config-templates directory
|
|
204
190
|
*/
|
|
205
|
-
function
|
|
206
|
-
const
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
},
|
|
223
|
-
failFast: true,
|
|
224
|
-
},
|
|
225
|
-
};
|
|
226
|
-
return stringifyYaml(baseConfig, {
|
|
227
|
-
indent: 2,
|
|
228
|
-
lineWidth: 100,
|
|
229
|
-
noRefs: true,
|
|
230
|
-
});
|
|
191
|
+
function getTemplatesDir() {
|
|
192
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
193
|
+
const __dirname = dirname(__filename);
|
|
194
|
+
// Try paths in order:
|
|
195
|
+
// 1. Development: packages/cli/src/commands/../../config-templates
|
|
196
|
+
const devPath = join(__dirname, '../../../../config-templates');
|
|
197
|
+
if (existsSync(devPath)) {
|
|
198
|
+
return devPath;
|
|
199
|
+
}
|
|
200
|
+
// 2. Production: packages/cli/dist/commands/../config-templates
|
|
201
|
+
const prodPath = join(__dirname, '../../../config-templates');
|
|
202
|
+
if (existsSync(prodPath)) {
|
|
203
|
+
return prodPath;
|
|
204
|
+
}
|
|
205
|
+
// 3. Fallback: assume monorepo root
|
|
206
|
+
const fallbackPath = join(process.cwd(), 'config-templates');
|
|
207
|
+
return fallbackPath;
|
|
231
208
|
}
|
|
232
209
|
/**
|
|
233
|
-
*
|
|
210
|
+
* Generate YAML configuration content by copying specified template
|
|
234
211
|
*
|
|
235
|
-
*
|
|
236
|
-
*
|
|
212
|
+
* Reads the specified template from config-templates/ and customizes
|
|
213
|
+
* it with the detected git configuration values.
|
|
237
214
|
*
|
|
238
|
-
* @param
|
|
239
|
-
* @param
|
|
240
|
-
* @
|
|
241
|
-
* @throws Error if
|
|
215
|
+
* @param templateName - Name of the template (without .yaml extension)
|
|
216
|
+
* @param gitConfig - Detected git configuration
|
|
217
|
+
* @returns YAML configuration file content
|
|
218
|
+
* @throws Error if template doesn't exist or is invalid
|
|
242
219
|
*/
|
|
243
|
-
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
220
|
+
function generateYamlConfig(templateName, gitConfig) {
|
|
221
|
+
const templatesDir = getTemplatesDir();
|
|
222
|
+
// Add .yaml extension if not present
|
|
223
|
+
const templateFile = templateName.endsWith('.yaml') ? templateName : `${templateName}.yaml`;
|
|
224
|
+
const templatePath = join(templatesDir, templateFile);
|
|
225
|
+
// Check if template exists
|
|
226
|
+
if (!existsSync(templatePath)) {
|
|
227
|
+
// List available templates using discovery utility
|
|
228
|
+
const availableTemplates = discoverTemplates();
|
|
229
|
+
console.error(chalk.red(`❌ Template '${templateName}' not found`));
|
|
230
|
+
console.error(chalk.gray(' Available templates:'));
|
|
231
|
+
for (const template of availableTemplates) {
|
|
232
|
+
const displayName = template.filename.replace('.yaml', '');
|
|
233
|
+
if (template.description) {
|
|
234
|
+
console.error(chalk.gray(` - ${displayName} (${template.description})`));
|
|
235
|
+
}
|
|
236
|
+
else {
|
|
237
|
+
console.error(chalk.gray(` - ${displayName}`));
|
|
238
|
+
}
|
|
239
|
+
}
|
|
250
240
|
process.exit(1);
|
|
251
241
|
}
|
|
252
|
-
//
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
242
|
+
// Read and parse the template
|
|
243
|
+
const templateContent = readFileSync(templatePath, 'utf-8');
|
|
244
|
+
const templateConfig = parseYaml(templateContent);
|
|
245
|
+
// Customize git settings with auto-detected values
|
|
246
|
+
if (typeof templateConfig.git === 'object' && templateConfig.git !== null) {
|
|
247
|
+
const gitSection = templateConfig.git;
|
|
248
|
+
gitSection.mainBranch = gitConfig.mainBranch;
|
|
249
|
+
gitSection.remoteOrigin = gitConfig.remoteOrigin;
|
|
257
250
|
}
|
|
258
|
-
//
|
|
259
|
-
|
|
260
|
-
const module = await import(fileUrl);
|
|
261
|
-
const config = module.default || module;
|
|
262
|
-
// Convert to YAML
|
|
263
|
-
const yamlContent = stringifyYaml(config, {
|
|
251
|
+
// Return the customized config
|
|
252
|
+
return stringifyYaml(templateConfig, {
|
|
264
253
|
indent: 2,
|
|
265
254
|
lineWidth: 100,
|
|
266
|
-
noRefs: true,
|
|
267
255
|
});
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Show verbose help with detailed documentation
|
|
259
|
+
*/
|
|
260
|
+
export function showInitVerboseHelp() {
|
|
261
|
+
console.log(`# init Command Reference
|
|
262
|
+
|
|
263
|
+
> Initialize vibe-validate configuration
|
|
264
|
+
|
|
265
|
+
## Overview
|
|
266
|
+
|
|
267
|
+
The \`init\` command sets up vibe-validate in your project by creating configuration files, optionally setting up pre-commit hooks, and generating GitHub Actions workflows.
|
|
268
|
+
|
|
269
|
+
## How It Works
|
|
270
|
+
|
|
271
|
+
1. **Creates vibe-validate.config.yaml** in project root (required)
|
|
272
|
+
2. **Optionally sets up pre-commit hooks** via Husky (with \`--setup-hooks\`)
|
|
273
|
+
3. **Optionally creates GitHub Actions workflow** (with \`--setup-workflow\`)
|
|
274
|
+
4. **Optionally updates .gitignore** to exclude validation state (with \`--fix-gitignore\`)
|
|
275
|
+
|
|
276
|
+
## Options
|
|
277
|
+
|
|
278
|
+
- \`-t, --template <name>\` - Template to use (default: "minimal")
|
|
279
|
+
- Available: \`minimal\`, \`typescript-library\`, \`typescript-nodejs\`, \`typescript-react\`
|
|
280
|
+
- \`--setup-hooks\` - Install Husky pre-commit hook
|
|
281
|
+
- \`--setup-workflow\` - Generate GitHub Actions workflow
|
|
282
|
+
- \`--fix-gitignore\` - Add validation state to .gitignore
|
|
283
|
+
- \`-f, --force\` - Overwrite existing config file
|
|
284
|
+
|
|
285
|
+
## Exit Codes
|
|
286
|
+
|
|
287
|
+
- \`0\` - Configuration created successfully
|
|
288
|
+
- \`1\` - Failed (config exists without --force, or invalid template)
|
|
289
|
+
|
|
290
|
+
## Files Created/Modified
|
|
291
|
+
|
|
292
|
+
- \`vibe-validate.config.yaml\` (always created)
|
|
293
|
+
- \`.husky/pre-commit\` (with \`--setup-hooks\`)
|
|
294
|
+
- \`.github/workflows/validate.yml\` (with \`--setup-workflow\`)
|
|
295
|
+
- \`.gitignore\` (with \`--fix-gitignore\`)
|
|
296
|
+
|
|
297
|
+
## Examples
|
|
298
|
+
|
|
299
|
+
\`\`\`bash
|
|
300
|
+
# Minimal setup (just config file)
|
|
301
|
+
vibe-validate init
|
|
302
|
+
|
|
303
|
+
# Full setup for TypeScript project
|
|
304
|
+
vibe-validate init --template typescript-nodejs --setup-workflow --setup-hooks
|
|
305
|
+
|
|
306
|
+
# React project with all features
|
|
307
|
+
vibe-validate init --template typescript-react --setup-workflow --setup-hooks --fix-gitignore
|
|
308
|
+
|
|
309
|
+
# Overwrite existing config
|
|
310
|
+
vibe-validate init --force --template typescript-library
|
|
311
|
+
\`\`\`
|
|
312
|
+
|
|
313
|
+
## Templates
|
|
314
|
+
|
|
315
|
+
### \`minimal\`
|
|
316
|
+
- Basic validation phases (build, test, lint)
|
|
317
|
+
- No TypeScript-specific checks
|
|
318
|
+
- Good starting point for customization
|
|
319
|
+
|
|
320
|
+
### \`typescript-library\`
|
|
321
|
+
- TypeScript type checking
|
|
322
|
+
- ESLint with TypeScript rules
|
|
323
|
+
- Jest/Vitest testing
|
|
324
|
+
- NPM package publishing checks
|
|
325
|
+
|
|
326
|
+
### \`typescript-nodejs\`
|
|
327
|
+
- TypeScript for Node.js applications
|
|
328
|
+
- API testing
|
|
329
|
+
- Security checks
|
|
330
|
+
- Docker build validation
|
|
331
|
+
|
|
332
|
+
### \`typescript-react\`
|
|
333
|
+
- React-specific linting
|
|
334
|
+
- Component testing
|
|
335
|
+
- Build size checks
|
|
336
|
+
- Accessibility validation
|
|
337
|
+
|
|
338
|
+
## Common Workflows
|
|
339
|
+
|
|
340
|
+
### First-time setup
|
|
341
|
+
\`\`\`bash
|
|
342
|
+
# 1. Initialize with template
|
|
343
|
+
vibe-validate init --template typescript-nodejs --setup-workflow
|
|
344
|
+
|
|
345
|
+
# 2. Review generated config
|
|
346
|
+
cat vibe-validate.config.yaml
|
|
347
|
+
|
|
348
|
+
# 3. Customize as needed
|
|
349
|
+
# Edit vibe-validate.config.yaml
|
|
350
|
+
|
|
351
|
+
# 4. Commit
|
|
352
|
+
git add vibe-validate.config.yaml .github/workflows/validate.yml
|
|
353
|
+
git commit -m "feat: add vibe-validate"
|
|
354
|
+
\`\`\`
|
|
355
|
+
|
|
356
|
+
### Migrating from another tool
|
|
357
|
+
\`\`\`bash
|
|
358
|
+
# 1. Initialize with minimal template
|
|
359
|
+
vibe-validate init
|
|
360
|
+
|
|
361
|
+
# 2. Manually configure validation phases
|
|
362
|
+
# Edit vibe-validate.config.yaml to match your existing workflow
|
|
363
|
+
|
|
364
|
+
# 3. Test locally
|
|
365
|
+
vibe-validate validate
|
|
366
|
+
|
|
367
|
+
# 4. If successful, commit
|
|
368
|
+
git add vibe-validate.config.yaml
|
|
369
|
+
git commit -m "feat: migrate to vibe-validate"
|
|
370
|
+
\`\`\`
|
|
371
|
+
|
|
372
|
+
### Updating existing config
|
|
373
|
+
\`\`\`bash
|
|
374
|
+
# Regenerate config (backs up old one)
|
|
375
|
+
vibe-validate init --force --template typescript-nodejs
|
|
376
|
+
|
|
377
|
+
# Compare old vs new
|
|
378
|
+
git diff vibe-validate.config.yaml
|
|
379
|
+
|
|
380
|
+
# Keep customizations, restore if needed
|
|
381
|
+
\`\`\`
|
|
382
|
+
|
|
383
|
+
## Pre-commit Hook Setup
|
|
384
|
+
|
|
385
|
+
When using \`--setup-hooks\`, init:
|
|
386
|
+
1. Installs Husky (if not already installed)
|
|
387
|
+
2. Creates \`.husky/pre-commit\` with:
|
|
388
|
+
\`\`\`bash
|
|
389
|
+
#!/bin/sh
|
|
390
|
+
npx vibe-validate pre-commit
|
|
391
|
+
\`\`\`
|
|
392
|
+
3. Ensures hook is executable
|
|
393
|
+
|
|
394
|
+
The hook runs \`vibe-validate pre-commit\` before every commit, which:
|
|
395
|
+
- Checks sync with origin/main
|
|
396
|
+
- Runs validation (with caching)
|
|
397
|
+
- Blocks commit if validation fails
|
|
398
|
+
|
|
399
|
+
## GitHub Actions Workflow
|
|
400
|
+
|
|
401
|
+
When using \`--setup-workflow\`, init creates \`.github/workflows/validate.yml\`:
|
|
402
|
+
- Runs on push and PR
|
|
403
|
+
- Matrix testing (multiple Node versions, OS)
|
|
404
|
+
- Caches validation results using git tree hashes
|
|
405
|
+
- Posts results as PR comments
|
|
406
|
+
|
|
407
|
+
## Error Recovery
|
|
408
|
+
|
|
409
|
+
**If config already exists:**
|
|
410
|
+
\`\`\`bash
|
|
411
|
+
# Option 1: Use --force to overwrite
|
|
412
|
+
vibe-validate init --force
|
|
413
|
+
|
|
414
|
+
# Option 2: Manually delete and re-init
|
|
415
|
+
rm vibe-validate.config.yaml
|
|
416
|
+
vibe-validate init
|
|
417
|
+
\`\`\`
|
|
418
|
+
|
|
419
|
+
**If template not found:**
|
|
420
|
+
\`\`\`bash
|
|
421
|
+
# List available templates (check error message)
|
|
422
|
+
# Use one of: minimal, typescript-library, typescript-nodejs, typescript-react
|
|
423
|
+
|
|
424
|
+
vibe-validate init --template typescript-nodejs
|
|
425
|
+
\`\`\`
|
|
426
|
+
|
|
427
|
+
**If Husky install fails:**
|
|
428
|
+
\`\`\`bash
|
|
429
|
+
# Manually install Husky
|
|
430
|
+
npm install --save-dev husky
|
|
431
|
+
npx husky install
|
|
432
|
+
|
|
433
|
+
# Then retry
|
|
434
|
+
vibe-validate init --setup-hooks
|
|
435
|
+
\`\`\`
|
|
436
|
+
`);
|
|
294
437
|
}
|
|
295
438
|
//# sourceMappingURL=init.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,IAAI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|
7
7
|
import type { Command } from 'commander';
|
|
8
8
|
export declare function preCommitCommand(program: Command): void;
|
|
9
|
+
/**
|
|
10
|
+
* Show verbose help with detailed documentation
|
|
11
|
+
*/
|
|
12
|
+
export declare function showPreCommitVerboseHelp(): void;
|
|
9
13
|
//# sourceMappingURL=pre-commit.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pre-commit.d.ts","sourceRoot":"","sources":["../../src/commands/pre-commit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"pre-commit.d.ts","sourceRoot":"","sources":["../../src/commands/pre-commit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AASzC,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA8IvD;AAED;;GAEG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CA4F/C"}
|