claude and a few other ide tools installation fix to not add a readme file slash comand regression, and cleanup bmad folders in tools on install

This commit is contained in:
Brian Madison
2025-11-06 22:45:29 -06:00
parent 1343859874
commit 91302d9c7a
269 changed files with 153 additions and 53977 deletions

View File

@@ -12,6 +12,20 @@ class CursorSetup extends BaseIdeSetup {
this.rulesDir = 'rules';
}
/**
* Cleanup old BMAD installation before reinstalling
* @param {string} projectDir - Project directory
*/
async cleanup(projectDir) {
const fs = require('fs-extra');
const bmadRulesDir = path.join(projectDir, this.configDir, this.rulesDir, 'bmad');
if (await fs.pathExists(bmadRulesDir)) {
await fs.remove(bmadRulesDir);
console.log(chalk.dim(` Removed old BMAD rules from ${this.name}`));
}
}
/**
* Setup Cursor IDE configuration
* @param {string} projectDir - Project directory
@@ -21,6 +35,9 @@ class CursorSetup extends BaseIdeSetup {
async setup(projectDir, bmadDir, options = {}) {
console.log(chalk.cyan(`Setting up ${this.name}...`));
// Clean up old BMAD installation first
await this.cleanup(projectDir);
// Create .cursor/rules directory structure
const cursorDir = path.join(projectDir, this.configDir);
const rulesDir = path.join(cursorDir, this.rulesDir);