0.0.13 • Published 3 years ago

pmcp-cli v0.0.13

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

PMCP CLI

create component templates

# 创建组件
$ npx pmcp-cli component -c pmcp-alert
# 删除组件
$ npx pmcp-cli component -r pmcp-alert

命令会在packages文件夹下自动生成目录及组件模板

[project name]
+-- packages # 组件代码所在位置
| +-- pmcp-alert # 组件
| | +-- index.ts # install代码,用于引入Vue.use进行安装
| | `-- src # 组件实现源码目录
| | | +-- index.vue
| | | +-- index.ts
| | | `-- index.scss

create component story

# 创建pmcp-alert组件的文档文件
$ npx pmcp-cli story -c pmcp-alert
# 删除pmcp-alert组件的文档文件
$ npx pmcp-cli story -r pmcp-alert

创建文档命令会在src/stories文件下创建对应组件的story文件,供组件文档使用

[project name]
+-- src # 组件代码所在位置
| +-- stories # 文档文件夹
| | +-- pmcp-alert.stories.ts # 文档ts文件
0.0.13

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.12

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago