@halo-dev/api-client 0.0.11 → 0.0.14

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 (5) hide show
  1. package/README.md +37 -0
  2. package/dist/index.cjs +3017 -567
  3. package/dist/index.d.ts +9883 -1600
  4. package/dist/index.mjs +2955 -552
  5. package/package.json +10 -10
package/README.md ADDED
@@ -0,0 +1,37 @@
1
+ # @halo-dev/api-client
2
+
3
+ Halo 2.0 的 JavaScript API 客户端请求库。使用 [OpenAPI Generator
4
+ ](https://openapi-generator.tech/) 生成。
5
+
6
+ ## 开发环境
7
+
8
+ ```bash
9
+ pnpm install
10
+ ```
11
+
12
+ ```bash
13
+ # 根据 OpenAPI 3.0 生成类型和网络请求的代码,此步骤需要启动 Halo 2.0 后端。
14
+ pnpm gen
15
+ ```
16
+
17
+ ```bash
18
+ pnpm build
19
+ ```
20
+
21
+ ## 本地调试
22
+
23
+ ```bash
24
+ pnpm link --global
25
+ ```
26
+
27
+ 然后在需要使用的库中执行:
28
+
29
+ ```bash
30
+ pnpm link --global @halo-dev/api-client
31
+ ```
32
+
33
+ ## 发布版本
34
+
35
+ ```bash
36
+ pnpm release
37
+ ```