fix formatting
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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}`);
|
||||
|
||||
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user