create-story
v1.0.1
Published
create story file
Downloads
4
Readme
create-story
基于组件路径和组件类型,自动创建story
文件。
Automatically create a 'story' file based on the component path and component type.
Installation
Install it as a command line tool via npm -g.
npm install create-story -g
Execution
create-story /Users/zh/demo/Button.jsx
create-story /Users/zh/demo/Button.vue
# or relative path
create-story demo/Button.vue
# or with type
create-story /Users/zh/demo/Button.js react
create-story /Users/zh/demo/Button.ts vue
Visit
执行命令后,组件的同级目录会新增组件的story
文件。
After the command is executed, the 'story' file of the component is added to the directory at the same level of the component.