@only1btayy/g2w 1.0.4 → 1.0.6
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/g2w.js +4 -4
- package/lib/install.js +4 -2
- package/lib/logo.js +12 -0
- package/package.json +1 -1
package/bin/g2w.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
const { LOGO } = require('../lib/logo');
|
|
3
4
|
const [,, command = 'help'] = process.argv;
|
|
4
5
|
|
|
5
6
|
if (command === 'install') {
|
|
@@ -9,12 +10,11 @@ if (command === 'install') {
|
|
|
9
10
|
} else if (command === 'uninstall') {
|
|
10
11
|
require('../lib/install').uninstall();
|
|
11
12
|
} else {
|
|
12
|
-
|
|
13
|
-
G2W — It's going to work or it's going to work.
|
|
14
|
-
|
|
13
|
+
process.stdout.write(`${LOGO}
|
|
15
14
|
Usage:
|
|
16
|
-
g2w install —
|
|
15
|
+
g2w install — install skills + hooks into ~/.claude/
|
|
17
16
|
g2w update — update skills to latest version
|
|
18
17
|
g2w uninstall — remove G2W
|
|
18
|
+
|
|
19
19
|
`);
|
|
20
20
|
}
|
package/lib/install.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
const fs = require('fs');
|
|
2
2
|
const path = require('path');
|
|
3
3
|
const os = require('os');
|
|
4
|
+
const { LOGO } = require('./logo');
|
|
4
5
|
const SKILLS_SRC = path.join(__dirname, '../skills');
|
|
5
6
|
|
|
6
7
|
const G2W_HOOKS = {
|
|
@@ -112,8 +113,8 @@ async function run() {
|
|
|
112
113
|
const { dest, count } = copySkills(base);
|
|
113
114
|
const settingsPath = mergeHooks(base);
|
|
114
115
|
|
|
115
|
-
|
|
116
|
-
✅ G2W installed at ${label}
|
|
116
|
+
process.stderr.write(`${LOGO}
|
|
117
|
+
\x1b[32m✅ G2W installed at ${label}\x1b[0m
|
|
117
118
|
|
|
118
119
|
${count} skills → ${path.join(label, 'skills/g2w/')}
|
|
119
120
|
Hooks → ${path.join(label, 'settings.json')}
|
|
@@ -122,6 +123,7 @@ Open any project with Claude Code and type:
|
|
|
122
123
|
/g2w:bring2life — onboard an existing codebase
|
|
123
124
|
/g2w:back2it — resume a session
|
|
124
125
|
/g2w:build2gether — start something new
|
|
126
|
+
|
|
125
127
|
`);
|
|
126
128
|
}
|
|
127
129
|
|
package/lib/logo.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
const LOGO = `\x1b[92m
|
|
2
|
+
________ ________ ___ __
|
|
3
|
+
|\\ ____\\|\\_____ \\|\\ \\ |\\ \\
|
|
4
|
+
\\ \\ \\___| \\|___/ /\\ \\ \\ \\ \\ \\
|
|
5
|
+
\\ \\ \\ ___ / / /\\ \\ \\ __\\ \\ \\
|
|
6
|
+
\\ \\ |\\ \\ / /_/__\\ \\ \\|\\__\\_\\ \\
|
|
7
|
+
\\ \\______/|\\________\\ \\____________\\
|
|
8
|
+
\\|______| \\|_______| \\|____________|
|
|
9
|
+
\x1b[0m\x1b[1m it's going to work or it's going to work\x1b[0m
|
|
10
|
+
`;
|
|
11
|
+
|
|
12
|
+
module.exports = { LOGO };
|