vg-coder-cli 1.0.9 → 1.0.10
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/.vgignore +0 -2
- package/bin/vg.js +11 -0
- package/package.json +4 -3
- package/src/index.js +3 -2
- package/test-large/package.json +0 -1
- package/test-large/src/components/Button.tsx +0 -1
- package/test-large/src/index.ts +0 -1
- package/test-small/package.json +0 -1
- package/test-small/src/index.js +0 -1
- package/vg-coder-cli-1.0.8.tgz +0 -0
- package/vg-coder-cli-1.0.9.tgz +0 -0
- package/vg-projects.txt +0 -5
package/.vgignore
CHANGED
package/bin/vg.js
ADDED
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vg-coder-cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.10",
|
|
4
4
|
"description": "🚀 CLI tool to analyze projects, concatenate source files, count tokens, and export HTML with syntax highlighting and copy functionality",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"bin": {
|
|
7
|
+
"vg": "./bin/vg.js",
|
|
7
8
|
"vg-coder": "./bin/vg-coder.js"
|
|
8
9
|
},
|
|
9
10
|
"scripts": {
|
|
@@ -11,7 +12,7 @@
|
|
|
11
12
|
"test": "jest",
|
|
12
13
|
"test:watch": "jest --watch",
|
|
13
14
|
"dev": "nodemon src/index.js",
|
|
14
|
-
"push"
|
|
15
|
+
"push": "npm pack && npm publish"
|
|
15
16
|
},
|
|
16
17
|
"keywords": [
|
|
17
18
|
"cli",
|
|
@@ -61,4 +62,4 @@
|
|
|
61
62
|
"engines": {
|
|
62
63
|
"node": ">=16.0.0"
|
|
63
64
|
}
|
|
64
|
-
}
|
|
65
|
+
}
|
package/src/index.js
CHANGED
|
@@ -25,13 +25,14 @@ class VGCoderCLI {
|
|
|
25
25
|
*/
|
|
26
26
|
setupCommands() {
|
|
27
27
|
this.program
|
|
28
|
-
.name('vg
|
|
28
|
+
.name('vg')
|
|
29
29
|
.description('CLI tool để phân tích dự án, nối file mã nguồn, đếm token và xuất HTML')
|
|
30
30
|
.version(packageJson.version);
|
|
31
31
|
|
|
32
32
|
// Analyze command
|
|
33
33
|
this.program
|
|
34
34
|
.command('analyze [path]')
|
|
35
|
+
.alias('a')
|
|
35
36
|
.description('Phân tích dự án và tạo output HTML')
|
|
36
37
|
.option('-o, --output <path>', 'Thư mục output', './vg-output')
|
|
37
38
|
.option('-m, --max-tokens <number>', 'Số token tối đa mỗi chunk', '8000')
|
|
@@ -41,7 +42,7 @@ class VGCoderCLI {
|
|
|
41
42
|
.option('--no-structure', 'Không ưu tiên giữ cấu trúc file')
|
|
42
43
|
.option('--theme <theme>', 'Theme cho syntax highlighting', 'github')
|
|
43
44
|
.option('--clipboard-only', 'Copy content to clipboard without creating files')
|
|
44
|
-
.option('--clipboard', 'Alias for --clipboard-only')
|
|
45
|
+
.option('-c, --clipboard', 'Alias for --clipboard-only')
|
|
45
46
|
.option('--save-txt', 'Save AI-friendly content to vg-projects.txt file')
|
|
46
47
|
.action(this.handleAnalyze.bind(this));
|
|
47
48
|
|
package/test-large/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name": "test-large", "version": "1.0.0", "dependencies": {"react": "^18.0.0"}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export const Button = () => <button>Click me</button>;
|
package/test-large/src/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { Button } from "./components/Button"; export default Button;
|
package/test-small/package.json
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"name": "test-small", "version": "1.0.0"}
|
package/test-small/src/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
console.log("Hello World");
|
package/vg-coder-cli-1.0.8.tgz
DELETED
|
Binary file
|
package/vg-coder-cli-1.0.9.tgz
DELETED
|
Binary file
|