claude-code-templates 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/create-claude-config.js +1 -6
- package/package.json +1 -1
- package/src/index.js +36 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -40,7 +40,42 @@ async function createClaudeConfig(options = {}) {
|
|
|
40
40
|
return;
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
// Add initial choice prompt (only if no specific options are provided)
|
|
44
|
+
if (!options.yes && !options.language && !options.framework && !options.dryRun) {
|
|
45
|
+
console.log(chalk.blue('🚀 Welcome to Claude Code Templates!'));
|
|
46
|
+
console.log('');
|
|
47
|
+
|
|
48
|
+
const initialChoice = await inquirer.prompt([{
|
|
49
|
+
type: 'list',
|
|
50
|
+
name: 'action',
|
|
51
|
+
message: 'What would you like to do?',
|
|
52
|
+
choices: [
|
|
53
|
+
{
|
|
54
|
+
name: '📊 Analytics Dashboard - Monitor your Claude Code usage and sessions',
|
|
55
|
+
value: 'analytics',
|
|
56
|
+
short: 'Analytics Dashboard'
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: '⚙️ Project Setup - Configure Claude Code for your project',
|
|
60
|
+
value: 'setup',
|
|
61
|
+
short: 'Project Setup'
|
|
62
|
+
}
|
|
63
|
+
],
|
|
64
|
+
default: 'setup'
|
|
65
|
+
}]);
|
|
66
|
+
|
|
67
|
+
if (initialChoice.action === 'analytics') {
|
|
68
|
+
console.log(chalk.blue('📊 Launching Claude Code Analytics Dashboard...'));
|
|
69
|
+
await runAnalytics(options);
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
// Continue with setup if user chose 'setup'
|
|
74
|
+
console.log(chalk.blue('⚙️ Setting up Claude Code configuration...'));
|
|
75
|
+
} else {
|
|
76
|
+
console.log(chalk.blue('🚀 Setting up Claude Code configuration...'));
|
|
77
|
+
}
|
|
78
|
+
|
|
44
79
|
console.log(chalk.gray(`Target directory: ${targetDir}`));
|
|
45
80
|
|
|
46
81
|
// Detect existing project
|