@atomservice/cli 0.1.4 → 0.1.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/package.json +5 -5
- package/src/cli.consts.ts +7 -7
- package/src/init/init.cmd.ts +1 -4
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atomservice/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "atomservice 命令行工具(atom):init / run / add / service",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "openorson",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|
|
9
9
|
"url": "git+https://github.com/openorson/atomservice.git",
|
|
10
|
-
"directory": "
|
|
10
|
+
"directory": "framework/cli"
|
|
11
11
|
},
|
|
12
12
|
"bugs": "https://github.com/openorson/atomservice/issues",
|
|
13
|
-
"homepage": "https://github.com/openorson/atomservice/tree/main/
|
|
13
|
+
"homepage": "https://github.com/openorson/atomservice/tree/main/framework/cli#readme",
|
|
14
14
|
"keywords": [
|
|
15
15
|
"atomservice",
|
|
16
16
|
"cli",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"bun"
|
|
20
20
|
],
|
|
21
21
|
"engines": {
|
|
22
|
-
"bun": ">=1.
|
|
22
|
+
"bun": ">=1.3.14"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"src",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@clack/prompts": "1.5.0",
|
|
33
|
-
"@atomservice/core": "0.1.
|
|
33
|
+
"@atomservice/core": "0.1.6",
|
|
34
34
|
"citty": "0.2.2",
|
|
35
35
|
"cli-table3": "0.6.5",
|
|
36
36
|
"log-update": "8.0.0",
|
package/src/cli.consts.ts
CHANGED
|
@@ -4,11 +4,11 @@ import { ATOMSERVICE_DIR } from "@atomservice/core"
|
|
|
4
4
|
export const CONFIG_PATH = path.join(ATOMSERVICE_DIR, "atom.config.ts")
|
|
5
5
|
|
|
6
6
|
export const OFFICIAL_SERVICES: Array<{ value: string; label: string; hint: string }> = [
|
|
7
|
-
{ value: "
|
|
8
|
-
{ value: "
|
|
9
|
-
{ value: "
|
|
10
|
-
{ value: "
|
|
11
|
-
{ value: "
|
|
12
|
-
{ value: "
|
|
13
|
-
{ value: "
|
|
7
|
+
{ value: "redis", label: "redis", hint: "Redis 缓存" },
|
|
8
|
+
{ value: "postgres", label: "postgres", hint: "PostgreSQL 数据库" },
|
|
9
|
+
{ value: "gateway", label: "gateway", hint: "反向代理 + HTTPS" },
|
|
10
|
+
{ value: "gitea", label: "gitea", hint: "Gitea Git 服务" },
|
|
11
|
+
{ value: "config", label: "config", hint: "通用配置中心" },
|
|
12
|
+
{ value: "app", label: "app", hint: "容器化后端应用部署" },
|
|
13
|
+
{ value: "site", label: "site", hint: "静态网站部署" },
|
|
14
14
|
]
|
package/src/init/init.cmd.ts
CHANGED
|
@@ -12,10 +12,7 @@ async function ensureDir() {
|
|
|
12
12
|
|
|
13
13
|
const pkgPath = path.join(ATOMSERVICE_DIR, "package.json")
|
|
14
14
|
if (!fs.existsSync(pkgPath)) {
|
|
15
|
-
await Bun.write(
|
|
16
|
-
pkgPath,
|
|
17
|
-
`${JSON.stringify({ name: "atomservice-config", private: true, type: "module" }, null, 2)}\n`,
|
|
18
|
-
)
|
|
15
|
+
await Bun.write(pkgPath, `${JSON.stringify({ name: "atomconfig", private: true, type: "module" }, null, 2)}\n`)
|
|
19
16
|
}
|
|
20
17
|
}
|
|
21
18
|
|