0.2.7 • Published 3 years ago

fusion-theme-config v0.2.7

Weekly downloads
390
License
ISC
Repository
-
Last release
3 years ago

主题配置 CLI

主题配置相关的命令行工具 🔧。

开始

安装:

tnpm i fusion-theme-config --save-dev

配置 package.json 脚本命令:

"scripts": {
  // ...
  "theme": "theme-scripts start --env=mobile",
  "theme:build": "theme-scripts build --env=mobile",
  "theme:publish": "theme-scripts publish --name=meet",
  // ...
}

用法

start 命令

本地启动主题配置服务,用于组件库本地开发调试主题配置页面及配置变量。目前只支持 mobile 端的配置。关于配置页面的书写和相关配置,可见:https://yuque.antfin.com/fusion-design-system/fusion-design/gapznv

build 命令

用于构建主题配置文档,目前只支持 mobile 端,构建之后发布到 npm 之后,即可发布到平台上。

publish 命令

参数 name 可选值 meet, next

next 组件一般通过 github 的 webhook 接口自动在组件库发布新版本的时候自动触发入库接口,不过如果需要更新日常环境或者需要发布 beta 版本,则可以通过该命令行进行发布。

meet 组件暂时没有 webhook 入库方式,必须需要通过该命令进行入库。