@guandata/guanvis 0.1.16 → 0.1.17

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/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## @guandata/guanvis 0.1.17 - 2026-05-21
4
+
5
+ - 构建流程会将 npm 包版本注入到 `guanvis` 二进制,确保运行时版本信息与发布包一致。
6
+ - `prepublishOnly` 增加构建脚本测试,提升 npm 发布产物稳定性。
7
+
3
8
  ## @guandata/guanvis 0.1.16 - 2026-05-20
4
9
 
5
10
  - 包名和命令入口统一移除 `-skill` 后缀,改为使用 `@guandata/guanvis` / `guanvis`。
package/README.md CHANGED
@@ -1,15 +1,12 @@
1
- # guanvis
1
+ # @guandata/guanvis
2
2
 
3
3
  观远 BI Card/Page 生成工具,通过 JS DSL 创建图表、筛选器和仪表板。
4
4
 
5
- ## 本地安装(开发/测试阶段)
5
+ ## 安装
6
6
 
7
7
  ```bash
8
- # 编译所有平台 binary(需要 Go 工具链)
9
- npm run build
10
-
11
- # 安装到本地 node global
12
- npm link
8
+ npm install -g @guandata/guanvis
9
+ guanvis install-skill
13
10
  ```
14
11
 
15
12
  安装后即可在终端使用:
@@ -33,6 +30,21 @@ guanvis publish ./my_dashboard/
33
30
 
34
31
  说明:npm 包名为 `@guandata/guanvis`,用户侧 CLI 命令统一为 `guanvis`。
35
32
 
33
+ ## 版本更新
34
+
35
+ ### 0.1.17
36
+
37
+ - 构建流程会将 npm 包版本注入到 `guanvis` 二进制,确保运行时版本信息与发布包一致。
38
+ - `prepublishOnly` 增加构建脚本测试,提升 npm 发布产物稳定性。
39
+
40
+ ### 0.1.16
41
+
42
+ - 包名和命令入口统一移除 `-skill` 后缀,改为使用 `@guandata/guanvis` / `guanvis`。
43
+ - 新增 `guanvis` 可视化构建、打包、预览、发布、截图、主题等完整 CLI 与使用文档。
44
+ - 比较卡默认改为基于筛选条件计算占比,改善默认生成结果的业务可用性。
45
+ - `init` 生成的 `schema.js` 现在会包含数据集虚拟字段,便于后续卡片配置直接使用。
46
+ - 改进 npm 包运行与发布兼容性,包括 Windows 控制台 UTF-8 启动和 skill YAML 字段引用兼容。
47
+
36
48
  Card/Page 的名称、描述和布局都应维护在 JS DSL 源文件中。新建或改版时,通过 preview/pack/publish 从 JS 源文件生成并发布资源;若只是修复已发布 Card/Page 的描述,应保留原资源 ID,使用 `set-description` 直接更新线上描述,并同步更新 JS 中的 `.setDescription(...)`:
37
49
 
38
50
  ```bash
@@ -72,6 +84,7 @@ npm unlink -g @guandata/guanvis
72
84
  ## 支持平台
73
85
 
74
86
  - macOS (Apple Silicon / Intel)
87
+ - Linux (x64 / arm64)
75
88
  - Windows (x64)
76
89
 
77
90
  ## 开发
Binary file
Binary file
Binary file
Binary file
Binary file
package/package.json CHANGED
@@ -1,15 +1,16 @@
1
1
  {
2
2
  "name": "@guandata/guanvis",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "观远 BI Card/Page 生成工具 - 通过 JS DSL 创建图表和仪表板",
5
5
  "bin": {
6
6
  "guanvis": "bin/run.js"
7
7
  },
8
8
  "scripts": {
9
9
  "build": "node scripts/build.js && node scripts/sync-skill.js",
10
+ "test:build-script": "node scripts/build.test.js",
10
11
  "changelog": "node ../../scripts/generate-release-changelog.js .",
11
12
  "check-changelog": "node ../../scripts/check-release-changelog.js .",
12
- "prepublishOnly": "npm run check-changelog && npm run build && node scripts/preflight.js"
13
+ "prepublishOnly": "npm run test:build-script && npm run check-changelog && npm run build && node scripts/preflight.js"
13
14
  },
14
15
  "files": [
15
16
  "bin/",
@@ -36,6 +37,7 @@
36
37
  "node": ">=14"
37
38
  },
38
39
  "publishConfig": {
39
- "registry": "https://app.mayidata.com/nexus/repository/guandata-web/"
40
+ "registry": "https://registry.npmjs.org/",
41
+ "access": "public"
40
42
  }
41
43
  }