@elonzh/fafa 0.0.0-stage → 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.
- package/LICENSE +21 -0
- package/README.md +44 -2
- package/dist/bin.js +8 -0
- package/dist/chunk-OBB66GA5.js +3084 -0
- package/dist/chunk-T24ISKK3.js +849 -0
- package/dist/dist-HLWFT422.js +12 -0
- package/dist/index.js +9 -0
- package/package.json +64 -4
- package/themes/base.css +191 -0
- package/themes/default.css +32 -0
- package/themes/elegant.css +50 -0
- package/themes/green.css +47 -0
- package/themes/minimal.css +47 -0
- package/themes/official.css +74 -0
- package/themes/tech.css +47 -0
- package/themes/warm.css +48 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 elonzh
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,45 @@
|
|
|
1
|
-
#
|
|
1
|
+
# 发发 FaFa CLI (`@elonzh/fafa`)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
本地优先的微信公众号 Markdown 草稿工具箱 CLI。以 Markdown、front matter 和本地素材为权威来源,生成稳定的微信公众号 HTML、离线预览与 HTML/PDF/PNG 导出,并安全地创建或原位更新公众号草稿箱。
|
|
4
|
+
|
|
5
|
+
> FaFa 的远端终点永远是微信公众号草稿箱,没有正式发布命令;最终发布必须在公众号后台人工完成。
|
|
6
|
+
|
|
7
|
+
## 安装 / Install
|
|
8
|
+
|
|
9
|
+
需要 Node.js 22 或更高版本:
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install -g @elonzh/fafa
|
|
13
|
+
fafa --version
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
也可以免安装单次执行:
|
|
17
|
+
|
|
18
|
+
```sh
|
|
19
|
+
npx @elonzh/fafa --version
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## 常用命令 / Quick Start
|
|
23
|
+
|
|
24
|
+
```sh
|
|
25
|
+
fafa init ./my-content
|
|
26
|
+
fafa --project ./my-content articles
|
|
27
|
+
fafa --project ./my-content check content/hello.md
|
|
28
|
+
fafa --project ./my-content render content/hello.md
|
|
29
|
+
fafa --project ./my-content export content/hello.md --format png --width 390
|
|
30
|
+
fafa --project ./my-content draft push content/hello.md --account main --dry-run
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## 安装 Agent Skills / Install Agent Skills
|
|
34
|
+
|
|
35
|
+
配合 Codex、Claude Code 等 Agent 使用时,可从 GitHub 安装仓库内置的 `fafa` 与 `creating-fafa-themes` Skills:
|
|
36
|
+
|
|
37
|
+
```sh
|
|
38
|
+
npx skills add elonzh/fafa --global
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## 文档与仓库 / Links
|
|
42
|
+
|
|
43
|
+
- 公开文档:<https://elonzh.github.io/fafa/>
|
|
44
|
+
- 源码仓库:<https://github.com/elonzh/fafa>
|
|
45
|
+
- 许可证:MIT
|