update function name and remove copying of cursor rules, now handled by rules transformer
This commit is contained in:
@@ -441,12 +441,12 @@ function createProjectStructure(
|
|||||||
year: new Date().getFullYear()
|
year: new Date().getFullYear()
|
||||||
};
|
};
|
||||||
|
|
||||||
// Helper function to process a single profile rule
|
// Helper function to create rules profiles
|
||||||
function _processSingleProfileRule(profileName) {
|
function _processSingleProfile(profileName) {
|
||||||
const profile = getRulesProfile(profileName);
|
const profile = getRulesProfile(profileName);
|
||||||
if (profile) {
|
if (profile) {
|
||||||
convertAllRulesToProfileRules(targetDir, profile);
|
convertAllRulesToProfileRules(targetDir, profile);
|
||||||
// The convertAllRulesToProfileRules function also triggers MCP config setup (if needed).
|
// convertAllRulesToProfileRules also triggers MCP config setup (if applicable)
|
||||||
} else {
|
} else {
|
||||||
log('warn', `Unknown rules profile: ${profileName}`);
|
log('warn', `Unknown rules profile: ${profileName}`);
|
||||||
}
|
}
|
||||||
@@ -471,30 +471,6 @@ function createProjectStructure(
|
|||||||
// Copy .gitignore
|
// Copy .gitignore
|
||||||
copyTemplateFile('gitignore', path.join(targetDir, '.gitignore'));
|
copyTemplateFile('gitignore', path.join(targetDir, '.gitignore'));
|
||||||
|
|
||||||
// Copy dev_workflow.mdc
|
|
||||||
copyTemplateFile(
|
|
||||||
'dev_workflow.mdc',
|
|
||||||
path.join(targetDir, '.cursor', 'rules', 'dev_workflow.mdc')
|
|
||||||
);
|
|
||||||
|
|
||||||
// Copy taskmaster.mdc
|
|
||||||
copyTemplateFile(
|
|
||||||
'taskmaster.mdc',
|
|
||||||
path.join(targetDir, '.cursor', 'rules', 'taskmaster.mdc')
|
|
||||||
);
|
|
||||||
|
|
||||||
// Copy cursor_rules.mdc
|
|
||||||
copyTemplateFile(
|
|
||||||
'cursor_rules.mdc',
|
|
||||||
path.join(targetDir, '.cursor', 'rules', 'cursor_rules.mdc')
|
|
||||||
);
|
|
||||||
|
|
||||||
// Copy self_improve.mdc
|
|
||||||
copyTemplateFile(
|
|
||||||
'self_improve.mdc',
|
|
||||||
path.join(targetDir, '.cursor', 'rules', 'self_improve.mdc')
|
|
||||||
);
|
|
||||||
|
|
||||||
// Copy example_prd.txt
|
// Copy example_prd.txt
|
||||||
copyTemplateFile(
|
copyTemplateFile(
|
||||||
'example_prd.txt',
|
'example_prd.txt',
|
||||||
@@ -515,7 +491,7 @@ function createProjectStructure(
|
|||||||
// Generate profile rules from assets/rules
|
// Generate profile rules from assets/rules
|
||||||
log('info', 'Generating profile rules from assets/rules...');
|
log('info', 'Generating profile rules from assets/rules...');
|
||||||
for (const profileName of selectedRulesProfiles) {
|
for (const profileName of selectedRulesProfiles) {
|
||||||
_processSingleProfileRule(profileName);
|
_processSingleProfile(profileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add shell aliases if requested
|
// Add shell aliases if requested
|
||||||
|
|||||||
Reference in New Issue
Block a user