@coze-arch/cli 0.0.1-alpha.9da0bd → 0.0.1-alpha.9ec6c2
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/lib/__templates__/templates.json +37 -0
- package/lib/cli.js +2 -2
- package/package.json +1 -1
|
@@ -51,6 +51,43 @@
|
|
|
51
51
|
"additionalProperties": false
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
+
{
|
|
55
|
+
"name": "test-only",
|
|
56
|
+
"description": "Test template showcasing all template hooks and features",
|
|
57
|
+
"location": "./test-only",
|
|
58
|
+
"paramsSchema": {
|
|
59
|
+
"type": "object",
|
|
60
|
+
"properties": {
|
|
61
|
+
"appName": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"minLength": 1,
|
|
64
|
+
"pattern": "^[a-z0-9-]+$",
|
|
65
|
+
"description": "Application name (lowercase, alphanumeric and hyphens only)"
|
|
66
|
+
},
|
|
67
|
+
"port": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"default": 5000,
|
|
70
|
+
"minimum": 1024,
|
|
71
|
+
"maximum": 65535,
|
|
72
|
+
"description": "Development server port"
|
|
73
|
+
},
|
|
74
|
+
"includeTests": {
|
|
75
|
+
"type": "boolean",
|
|
76
|
+
"default": true,
|
|
77
|
+
"nullable": true,
|
|
78
|
+
"description": "Include test files"
|
|
79
|
+
},
|
|
80
|
+
"addCopyright": {
|
|
81
|
+
"type": "boolean",
|
|
82
|
+
"default": false,
|
|
83
|
+
"nullable": true,
|
|
84
|
+
"description": "Add copyright header to source files"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"required": [],
|
|
88
|
+
"additionalProperties": false
|
|
89
|
+
}
|
|
90
|
+
},
|
|
54
91
|
{
|
|
55
92
|
"name": "vite",
|
|
56
93
|
"description": "Vite(简单项目):`coze init ${COZE_WORKSPACE_PATH} --template vite`\n- 适用:轻量级 SPA、纯前端交互、仪表盘等轻量级项目。",
|
package/lib/cli.js
CHANGED
|
@@ -1105,7 +1105,7 @@ const executeRun = async (
|
|
|
1105
1105
|
logger.info(`Running ${commandName} command...`);
|
|
1106
1106
|
|
|
1107
1107
|
// 1. 对于 build 命令,先执行 fix 以确保项目配置正确
|
|
1108
|
-
if (
|
|
1108
|
+
if (['dev', 'build'].includes(commandName)) {
|
|
1109
1109
|
logger.info('\n🔧 Running fix command before build...\n');
|
|
1110
1110
|
try {
|
|
1111
1111
|
await executeFix();
|
|
@@ -2121,7 +2121,7 @@ const registerCommand = program => {
|
|
|
2121
2121
|
});
|
|
2122
2122
|
};
|
|
2123
2123
|
|
|
2124
|
-
var version = "0.0.1-alpha.
|
|
2124
|
+
var version = "0.0.1-alpha.9ec6c2";
|
|
2125
2125
|
var packageJson = {
|
|
2126
2126
|
version: version};
|
|
2127
2127
|
|