@fecommunity/reactpress-cli 0.0.7 → 0.1.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.
Files changed (2) hide show
  1. package/README.md +47 -0
  2. package/package.json +7 -1
package/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # @fecommunity/reactpress-cli
2
+
3
+ 零配置一键初始化与管理 ReactPress CMS & 博客服务器。内置 NestJS 服务端,无需单独克隆 [fecommunity/reactpress](https://github.com/fecommunity/reactpress)。
4
+
5
+ 完整文档与贡献指南见:[github.com/fecommunity/reactpress-cli](https://github.com/fecommunity/reactpress-cli)
6
+
7
+ ## 安装
8
+
9
+ ```bash
10
+ npm install -g @fecommunity/reactpress-cli
11
+ ```
12
+
13
+ 全局命令为 `reactpress-cli`(与 npm 包名无关)。
14
+
15
+ > npm 上的无作用域包名 `reactpress-cli` 已被占用,本包发布为 `@fecommunity/reactpress-cli`。
16
+
17
+ ## 快速开始
18
+
19
+ ```bash
20
+ mkdir my-blog && cd my-blog
21
+ reactpress-cli init
22
+ reactpress-cli start
23
+ ```
24
+
25
+ 浏览器访问 `http://localhost:3002`(API 文档:`/api`)。
26
+
27
+ ## 常用命令
28
+
29
+ | 命令 | 说明 |
30
+ |------|------|
31
+ | `reactpress-cli init [dir]` | 初始化项目 |
32
+ | `reactpress-cli start` | 启动服务(自动准备数据库) |
33
+ | `reactpress-cli stop` | 停止服务 |
34
+ | `reactpress-cli restart` | 重启服务 |
35
+ | `reactpress-cli status` | 查看状态 |
36
+ | `reactpress-cli config [key] [value]` | 查看/修改配置 |
37
+ | `reactpress-cli config server.port 3003 --apply` | 改端口并重启 |
38
+
39
+ ## 要求
40
+
41
+ - Node.js 18+
42
+ - macOS / Linux / Windows
43
+ - 默认使用 Docker 运行嵌入式 MySQL;也可在 `.reactpress/config.json` 中配置外部数据库
44
+
45
+ ## 许可证
46
+
47
+ MIT © FECommunity
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fecommunity/reactpress-cli",
3
- "version": "0.0.7",
3
+ "version": "0.1.0",
4
4
  "description": "Zero-config CLI to initialize and manage ReactPress CMS & Blog servers",
5
5
  "keywords": [
6
6
  "reactpress",
@@ -10,6 +10,10 @@
10
10
  ],
11
11
  "author": "fecommunity",
12
12
  "license": "MIT",
13
+ "homepage": "https://github.com/fecommunity/reactpress-cli#readme",
14
+ "bugs": {
15
+ "url": "https://github.com/fecommunity/reactpress-cli/issues"
16
+ },
13
17
  "repository": {
14
18
  "type": "git",
15
19
  "url": "git+https://github.com/fecommunity/reactpress-cli.git"
@@ -19,6 +23,8 @@
19
23
  "reactpress-cli": "./dist/index.js"
20
24
  },
21
25
  "files": [
26
+ "README.md",
27
+ "LICENSE",
22
28
  "dist",
23
29
  "scripts/install-bundled-runtime.mjs",
24
30
  "templates",