claude-code-templates 1.1.3 → 1.1.5
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "claude-code-templates",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.5",
|
|
4
4
|
"description": "CLI tool to setup Claude Code configurations for different programming languages",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -41,12 +41,12 @@
|
|
|
41
41
|
},
|
|
42
42
|
"repository": {
|
|
43
43
|
"type": "git",
|
|
44
|
-
"url": "git+https://github.com/
|
|
44
|
+
"url": "git+https://github.com/davila7/claude-code-templates.git"
|
|
45
45
|
},
|
|
46
46
|
"bugs": {
|
|
47
|
-
"url": "https://github.com/
|
|
47
|
+
"url": "https://github.com/davila7/claude-code-templates/issues"
|
|
48
48
|
},
|
|
49
|
-
"homepage": "https://github.com/
|
|
49
|
+
"homepage": "https://github.com/davila7/claude-code-templates#readme",
|
|
50
50
|
"files": [
|
|
51
51
|
"bin/",
|
|
52
52
|
"src/",
|
package/src/prompts.js
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
const chalk = require('chalk');
|
|
2
2
|
const inquirer = require('inquirer');
|
|
3
|
+
|
|
4
|
+
// Override the checkbox prompt to remove help text
|
|
5
|
+
class CustomCheckboxPrompt extends inquirer.prompt.prompts.checkbox {
|
|
6
|
+
getHelpText() {
|
|
7
|
+
return ''; // Return empty string instead of help text
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// Override the render method to ensure help text is not shown
|
|
11
|
+
render() {
|
|
12
|
+
let message = super.render();
|
|
13
|
+
// Remove any help text that might still appear
|
|
14
|
+
message = message.replace(/\(Press.*?\)/g, '');
|
|
15
|
+
return message;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
inquirer.registerPrompt('checkbox', CustomCheckboxPrompt);
|
|
3
20
|
const { getAvailableLanguages, getFrameworksForLanguage } = require('./templates');
|
|
4
21
|
const { getCommandsForLanguageAndFramework } = require('./command-scanner');
|
|
5
22
|
|
|
@@ -105,7 +122,7 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
105
122
|
return {
|
|
106
123
|
type: 'checkbox',
|
|
107
124
|
name: 'commands',
|
|
108
|
-
message: 'Select commands to include
|
|
125
|
+
message: 'Select commands to include:',
|
|
109
126
|
choices: [
|
|
110
127
|
{
|
|
111
128
|
value: 'basic-commands',
|
|
@@ -122,13 +139,14 @@ function getStepConfig(stepName, currentAnswers, projectInfo, options) {
|
|
|
122
139
|
return {
|
|
123
140
|
type: 'checkbox',
|
|
124
141
|
name: 'commands',
|
|
125
|
-
message: 'Select commands to include
|
|
142
|
+
message: 'Select commands to include:',
|
|
126
143
|
choices: availableCommands.map(cmd => ({
|
|
127
144
|
value: cmd.name,
|
|
128
145
|
name: `${cmd.displayName} - ${cmd.description}`,
|
|
129
146
|
checked: cmd.checked
|
|
130
147
|
})),
|
|
131
|
-
prefix: chalk.cyan('📋')
|
|
148
|
+
prefix: chalk.cyan('📋'),
|
|
149
|
+
pageSize: 10
|
|
132
150
|
};
|
|
133
151
|
|
|
134
152
|
case 'confirm':
|
|
@@ -208,7 +226,7 @@ function createPrompts(projectInfo, options = {}) {
|
|
|
208
226
|
prompts.push({
|
|
209
227
|
type: 'checkbox',
|
|
210
228
|
name: 'commands',
|
|
211
|
-
message: 'Select commands to include
|
|
229
|
+
message: 'Select commands to include:',
|
|
212
230
|
choices: (answers) => {
|
|
213
231
|
const selectedLanguage = answers.language || options.language;
|
|
214
232
|
const selectedFramework = answers.framework || options.framework;
|
|
@@ -39,7 +39,7 @@ Copy the template manually for more control:
|
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
41
|
# Clone the repository
|
|
42
|
-
git clone https://github.com/
|
|
42
|
+
git clone https://github.com/davila7/claude-code-templates.git
|
|
43
43
|
|
|
44
44
|
# Copy the JavaScript/TypeScript template
|
|
45
45
|
cp claude-code-templates/javascript-typescript/CLAUDE.md your-project/
|