fix formatting

This commit is contained in:
Joe Danziger
2025-05-09 10:52:37 -04:00
parent 5b95b1d8ee
commit a2e99bdfa4
4 changed files with 13 additions and 10 deletions

View File

@@ -106,12 +106,17 @@ task-master parse-prd your-prd.txt
You can add or remove brand rules at any time after project initialization: You can add or remove brand rules at any time after project initialization:
``` ```
task-master rules add windsurf,roo task-master rules add windsurf,roo
# Adds the specified brand rule sets (e.g., .windsurf/rules, .roo/rules) to your project. # Adds the specified brand rule sets (e.g., .windsurf/rules, .roo/rules) to your project.
# Also sets up the corresponding MCP configuration in the brand directory. # Also sets up the corresponding MCP configuration in the brand directory.
task-master rules remove windsurf task-master rules remove windsurf
# Removes the specified brand rule sets and their MCP config from your project. # Removes the specified brand rule sets and their MCP config from your project.
``` ```
- Adding rules creates the brand rules directory (e.g., `.roo/rules`) and copies/initializes the brand's rules. - Adding rules creates the brand rules directory (e.g., `.roo/rules`) and copies/initializes the brand's rules.

View File

@@ -223,7 +223,6 @@ function copyTemplateFile(templateName, targetPath, replacements = {}) {
// sourcePath = path.join(__dirname, '..', 'README-task-master.md'); // sourcePath = path.join(__dirname, '..', 'README-task-master.md');
break; break;
default: default:
// For other files like env.example, gitignore, etc. that don't have direct equivalents // For other files like env.example, gitignore, etc. that don't have direct equivalents
sourcePath = path.join(__dirname, '..', 'assets', templateName); sourcePath = path.join(__dirname, '..', 'assets', templateName);
@@ -276,8 +275,6 @@ function copyTemplateFile(templateName, targetPath, replacements = {}) {
return; return;
} }
// Handle README.md - offer to preserve or create a different file // Handle README.md - offer to preserve or create a different file
if (filename === 'README-task-master.md') { if (filename === 'README-task-master.md') {
log('info', `${targetPath} already exists`); log('info', `${targetPath} already exists`);
@@ -374,7 +371,6 @@ async function initializeProject(options = {}) {
// fallback for safety // fallback for safety
convertAllCursorRulesToBrandRules(targetDir, cursorProfile); convertAllCursorRulesToBrandRules(targetDir, cursorProfile);
} }
} else { } else {
// Interactive logic // Interactive logic
log('info', 'Required options not provided, proceeding with prompts.'); log('info', 'Required options not provided, proceeding with prompts.');
@@ -452,7 +448,6 @@ async function initializeProject(options = {}) {
// fallback for safety // fallback for safety
convertAllCursorRulesToBrandRules(targetDir, cursorProfile); convertAllCursorRulesToBrandRules(targetDir, cursorProfile);
} }
} catch (error) { } catch (error) {
rl.close(); rl.close();
log('error', `Error during initialization process: ${error.message}`); log('error', `Error during initialization process: ${error.message}`);

View File

@@ -12,7 +12,6 @@ import { log } from './utils.js';
// Import the shared MCP configuration helper // Import the shared MCP configuration helper
import { setupMCPConfiguration } from './mcp-utils.js'; import { setupMCPConfiguration } from './mcp-utils.js';
/** /**
* Replace basic Cursor terms with brand equivalents * Replace basic Cursor terms with brand equivalents
*/ */

View File

@@ -164,7 +164,6 @@ export function onAddBrandRules(targetDir) {
} }
} }
function copyRecursiveSync(src, dest) { function copyRecursiveSync(src, dest) {
const exists = fs.existsSync(src); const exists = fs.existsSync(src);
const stats = exists && fs.statSync(src); const stats = exists && fs.statSync(src);
@@ -222,6 +221,11 @@ function onPostConvertBrandRules(targetDir) {
onAddBrandRules(targetDir); onAddBrandRules(targetDir);
} }
export { conversionConfig, fileMap, globalReplacements, brandName, rulesDir, onPostConvertBrandRules }; export {
conversionConfig,
fileMap,
globalReplacements,
brandName,
rulesDir,
onPostConvertBrandRules
};