taskmonkey-cli 0.4.2 → 0.4.3
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 +1 -1
- package/skills/gitignore +6 -0
- package/src/commands/pull.js +13 -1
package/package.json
CHANGED
package/skills/gitignore
ADDED
package/src/commands/pull.js
CHANGED
|
@@ -63,6 +63,18 @@ export async function pull() {
|
|
|
63
63
|
written++;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// Create .gitignore if it doesn't exist
|
|
67
|
+
const gitignorePath = join(config._configDir, '.gitignore');
|
|
68
|
+
if (!existsSync(gitignorePath)) {
|
|
69
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
70
|
+
const gitignoreSrc = resolve(dirname(__filename), '..', '..', 'skills', 'gitignore');
|
|
71
|
+
if (existsSync(gitignoreSrc)) {
|
|
72
|
+
writeFileSync(gitignorePath, readFileSync(gitignoreSrc, 'utf8'));
|
|
73
|
+
console.log(chalk.cyan(` .gitignore (created)`));
|
|
74
|
+
written++;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
66
78
|
// Install Claude Code skills to .claude/commands/
|
|
67
79
|
const skillsInstalled = installSkills(config._configDir);
|
|
68
80
|
written += skillsInstalled;
|
|
@@ -85,7 +97,7 @@ function installSkills(targetDir) {
|
|
|
85
97
|
if (!existsSync(skillsDir)) return 0;
|
|
86
98
|
|
|
87
99
|
let count = 0;
|
|
88
|
-
const files = readdirSync(skillsDir).filter(f => f.endsWith('.md'));
|
|
100
|
+
const files = readdirSync(skillsDir).filter(f => f.endsWith('.md') && f !== 'gitignore');
|
|
89
101
|
for (const file of files) {
|
|
90
102
|
const content = readFileSync(join(skillsDir, file), 'utf8');
|
|
91
103
|
writeFileSync(join(commandsDir, file), content);
|