54c66efe9b
- Changed CLI usage instructions from `dart run cursor_gen` to `cursor_gen` for global activation. - Updated project-brief.yaml example and README to reflect new command usage. - Added app_context section in project-brief.yaml for theme variants and RBAC roles. - Fixed bundled template resolution for local and global installs to prevent 'Template not found' errors. - Version bump to 1.0.1 with corresponding updates in CHANGELOG and pubspec.yaml.
17 lines
483 B
Cheetah
17 lines
483 B
Cheetah
#!/usr/bin/env ts-node
|
|
// grind-tests.ts — Pre-push hook: runs flutter test
|
|
import { execSync } from 'child_process';
|
|
|
|
const RED = '\x1b[31m';
|
|
const GREEN = '\x1b[32m';
|
|
const RESET = '\x1b[0m';
|
|
|
|
console.log('🧪 Running flutter test...');
|
|
try {
|
|
execSync('flutter test --coverage', { stdio: 'inherit' });
|
|
console.log(`${GREEN}✔ All tests passed${RESET}`);
|
|
} catch {
|
|
console.error(`${RED}✘ Tests failed. Fix failing tests before pushing.${RESET}`);
|
|
process.exit(1);
|
|
}
|