beast-snippets
基于 beast 组件库的 vscode 插件,目前收录了 beast-core、beast-mobile 的所有组件。
Usage
1、安装方式
vscode中搜索 beast-snippets

2、使用方式:

(1)引入包
- 输入
imbc 并回车,出现 import { 光标位置 } from '@msfe/beast-core'
- 输入
imbcbutton 并回车,出现 import { Button } from '@msfe/beast-core'
- 输入
imbm 并回车,出现 import { 光标位置 } from '@msfe/beast-mobile'
- 输入
imbmbutton 并回车,出现 import { Button } from '@msfe/beast-mobile'
(2)jsx中使用组件
输入 bcbutton(移动端为 bmmobile) 并回车,出现 <Button type="primary">光标位置</Button>
所有代码片段内容,详见 snippets/snippets.json
开发
- 打包:
vsce package(不打包 也可直接发布)
- 发布:
- 方式 1:
yarn patch, yarn minor, yarn major分别发小、中、大版本号
- 方式 2:
vsce publish + 指定版本号
- For 维护者:
Develop guideline
| |