From a2e99bdfa4270a70deec410bb506f04011c2a086 Mon Sep 17 00:00:00 2001 From: Joe Danziger Date: Fri, 9 May 2025 10:52:37 -0400 Subject: [PATCH] fix formatting --- README.md | 5 +++++ scripts/init.js | 5 ----- scripts/modules/rule-transformer.js | 1 - scripts/profiles/roo.js | 12 ++++++++---- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6fdc6b84..ded3c939 100644 --- a/README.md +++ b/README.md @@ -106,12 +106,17 @@ task-master parse-prd your-prd.txt You can add or remove brand rules at any time after project initialization: ``` + task-master rules add windsurf,roo + # 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. task-master rules remove windsurf + # 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. diff --git a/scripts/init.js b/scripts/init.js index b5673a4f..7b1a1c34 100755 --- a/scripts/init.js +++ b/scripts/init.js @@ -223,7 +223,6 @@ function copyTemplateFile(templateName, targetPath, replacements = {}) { // sourcePath = path.join(__dirname, '..', 'README-task-master.md'); break; - default: // For other files like env.example, gitignore, etc. that don't have direct equivalents sourcePath = path.join(__dirname, '..', 'assets', templateName); @@ -276,8 +275,6 @@ function copyTemplateFile(templateName, targetPath, replacements = {}) { return; } - - // Handle README.md - offer to preserve or create a different file if (filename === 'README-task-master.md') { log('info', `${targetPath} already exists`); @@ -374,7 +371,6 @@ async function initializeProject(options = {}) { // fallback for safety convertAllCursorRulesToBrandRules(targetDir, cursorProfile); } - } else { // Interactive logic log('info', 'Required options not provided, proceeding with prompts.'); @@ -452,7 +448,6 @@ async function initializeProject(options = {}) { // fallback for safety convertAllCursorRulesToBrandRules(targetDir, cursorProfile); } - } catch (error) { rl.close(); log('error', `Error during initialization process: ${error.message}`); diff --git a/scripts/modules/rule-transformer.js b/scripts/modules/rule-transformer.js index d723db1f..9daefc3c 100644 --- a/scripts/modules/rule-transformer.js +++ b/scripts/modules/rule-transformer.js @@ -12,7 +12,6 @@ import { log } from './utils.js'; // Import the shared MCP configuration helper import { setupMCPConfiguration } from './mcp-utils.js'; - /** * Replace basic Cursor terms with brand equivalents */ diff --git a/scripts/profiles/roo.js b/scripts/profiles/roo.js index a6d72af5..38076ac9 100644 --- a/scripts/profiles/roo.js +++ b/scripts/profiles/roo.js @@ -164,7 +164,6 @@ export function onAddBrandRules(targetDir) { } } - function copyRecursiveSync(src, dest) { const exists = fs.existsSync(src); const stats = exists && fs.statSync(src); @@ -222,6 +221,11 @@ function onPostConvertBrandRules(targetDir) { onAddBrandRules(targetDir); } -export { conversionConfig, fileMap, globalReplacements, brandName, rulesDir, onPostConvertBrandRules }; - - +export { + conversionConfig, + fileMap, + globalReplacements, + brandName, + rulesDir, + onPostConvertBrandRules +};