以下内容与 vue-cli-plugin-lbhc README 相同

vue-cli-plugin-lbhc 全称为:vue-cli-plugin-luban-h5-component

安装

使用preset自动安装插件

  1. vue create --preset luban-h5/vue-cli-plugin-lbhc my-luban-component-demo

目录结构

  1. mini-editor 模拟鲁班H5的核心编辑器功能
  2. component 你要编写组件的目录
  3. index.js 组件入口
  4. editor.js 组件的编辑面板配置

开发流程

  1. vue create --preset luban-h5/vue-cli-plugin-lbhc lbc-demo
  2. cd lbc-demo
  3. yarn serve
  4. # 构建、发布个人组件
  5. yarn build
  6. npm login
  7. npm publish
  8. # 构建发布 scope 组件
  9. yarn build
  10. npm login
  11. npm publish --access publish