@gyxer-studio/cli 0.1.1 → 0.2.0
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/dist/commands/editor.d.ts +6 -0
- package/dist/commands/editor.d.ts.map +1 -0
- package/dist/commands/editor.js +98 -0
- package/dist/commands/editor.js.map +1 -0
- package/dist/editor-dist/assets/index-DOgTbF32.css +1 -0
- package/dist/editor-dist/assets/index-okcoMzlC.js +75 -0
- package/dist/editor-dist/favicon.svg +17 -0
- package/dist/editor-dist/index.html +17 -0
- package/dist/index.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +8 -6
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<svg width="32" height="32" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<!-- Red blade — top right -->
|
|
3
|
+
<path d="M50 50 C50 30, 55 10, 75 5 C65 25, 62 40, 50 50Z" fill="#C8232C"/>
|
|
4
|
+
<path d="M50 50 C60 42, 78 35, 92 40 C75 38, 60 42, 50 50Z" fill="#C8232C"/>
|
|
5
|
+
<path d="M50 50 C55 30, 70 15, 92 40 C78 20, 58 22, 50 50Z" fill="#C8232C" opacity="0.9"/>
|
|
6
|
+
<!-- Dark blade — bottom right -->
|
|
7
|
+
<path d="M50 50 C60 55, 75 70, 75 92 C68 75, 58 62, 50 50Z" fill="#1A1A1A"/>
|
|
8
|
+
<path d="M50 50 C55 60, 55 80, 42 95 C50 78, 52 62, 50 50Z" fill="#1A1A1A"/>
|
|
9
|
+
<path d="M50 50 C65 62, 75 82, 42 95 C70 85, 60 65, 50 50Z" fill="#1A1A1A" opacity="0.9"/>
|
|
10
|
+
<!-- Grey blade — left -->
|
|
11
|
+
<path d="M50 50 C40 48, 22 42, 8 50 C22 44, 38 46, 50 50Z" fill="#999999"/>
|
|
12
|
+
<path d="M50 50 C42 42, 28 25, 15 18 C25 32, 38 42, 50 50Z" fill="#999999"/>
|
|
13
|
+
<path d="M50 50 C30 38, 12 25, 8 50 C10 30, 32 30, 50 50Z" fill="#999999" opacity="0.9"/>
|
|
14
|
+
<!-- Center -->
|
|
15
|
+
<circle cx="50" cy="50" r="6" fill="#C8232C"/>
|
|
16
|
+
<circle cx="50" cy="50" r="3" fill="white"/>
|
|
17
|
+
</svg>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Gyxer Studio</title>
|
|
8
|
+
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
9
|
+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
10
|
+
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap" rel="stylesheet" />
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-okcoMzlC.js"></script>
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/assets/index-DOgTbF32.css">
|
|
13
|
+
</head>
|
|
14
|
+
<body>
|
|
15
|
+
<div id="root"></div>
|
|
16
|
+
</body>
|
|
17
|
+
</html>
|
package/dist/index.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
import { Command } from 'commander';
|
|
3
3
|
import { generateCommand } from './commands/generate.js';
|
|
4
4
|
import { newCommand } from './commands/new.js';
|
|
5
|
+
import { editorCommand } from './commands/editor.js';
|
|
5
6
|
const program = new Command();
|
|
6
7
|
program
|
|
7
8
|
.name('gyxer')
|
|
8
9
|
.description('Gyxer CLI — generate production-ready NestJS backends')
|
|
9
|
-
.version('0.
|
|
10
|
+
.version('0.2.0');
|
|
10
11
|
// gyxer generate [schema.json] — with or without a config path
|
|
11
12
|
program
|
|
12
13
|
.command('generate [schema]')
|
|
@@ -18,13 +19,11 @@ program
|
|
|
18
19
|
.command('new <name>')
|
|
19
20
|
.description('Create a new project with interactive wizard')
|
|
20
21
|
.action(newCommand);
|
|
21
|
-
// gyxer
|
|
22
|
+
// gyxer editor
|
|
22
23
|
program
|
|
23
|
-
.command('
|
|
24
|
-
.description('Open the visual editor
|
|
25
|
-
.
|
|
26
|
-
|
|
27
|
-
console.log('For now, use the editor package: npm run dev -w packages/editor');
|
|
28
|
-
});
|
|
24
|
+
.command('editor')
|
|
25
|
+
.description('Open the visual schema editor in your browser')
|
|
26
|
+
.option('-p, --port <number>', 'Port to run on', '4200')
|
|
27
|
+
.action(editorCommand);
|
|
29
28
|
program.parse();
|
|
30
29
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAErD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,OAAO,CAAC;KACb,WAAW,CAAC,uDAAuD,CAAC;KACpE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,+DAA+D;AAC/D,OAAO;KACJ,OAAO,CAAC,mBAAmB,CAAC;KAC5B,WAAW,CAAC,uEAAuE,CAAC;KACpF,MAAM,CAAC,oBAAoB,EAAE,iDAAiD,CAAC;KAC/E,MAAM,CAAC,eAAe,CAAC,CAAC;AAE3B,mBAAmB;AACnB,OAAO;KACJ,OAAO,CAAC,YAAY,CAAC;KACrB,WAAW,CAAC,8CAA8C,CAAC;KAC3D,MAAM,CAAC,UAAU,CAAC,CAAC;AAEtB,eAAe;AACf,OAAO;KACJ,OAAO,CAAC,QAAQ,CAAC;KACjB,WAAW,CAAC,+CAA+C,CAAC;KAC5D,MAAM,CAAC,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,CAAC;KACvD,MAAM,CAAC,aAAa,CAAC,CAAC;AAEzB,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gyxer-studio/cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Gyxer CLI — generate production-ready NestJS projects from the command line",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"dist"
|
|
19
19
|
],
|
|
20
20
|
"scripts": {
|
|
21
|
-
"build": "tsc",
|
|
21
|
+
"build": "tsc && node -e \"require('fs').cpSync('../editor/dist','./dist/editor-dist',{recursive:true})\"",
|
|
22
22
|
"dev": "tsc --watch",
|
|
23
23
|
"prepublishOnly": "npm run build"
|
|
24
24
|
},
|
|
@@ -45,12 +45,14 @@
|
|
|
45
45
|
"node": ">=20.0.0"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@gyxer-studio/
|
|
49
|
-
"@gyxer-studio/
|
|
50
|
-
"commander": "^13.0.0",
|
|
48
|
+
"@gyxer-studio/generator": "0.2.0",
|
|
49
|
+
"@gyxer-studio/schema": "0.2.0",
|
|
51
50
|
"chalk": "^5.4.0",
|
|
51
|
+
"commander": "^13.0.0",
|
|
52
|
+
"inquirer": "^12.0.0",
|
|
53
|
+
"open": "^11.0.0",
|
|
52
54
|
"ora": "^8.1.0",
|
|
53
|
-
"
|
|
55
|
+
"sirv": "^3.0.2"
|
|
54
56
|
},
|
|
55
57
|
"devDependencies": {
|
|
56
58
|
"typescript": "^5.7.0"
|