vue-cli-plugin-component

vue-cli 3 plugin to develop component

MIT 72 个版本
安装
npm install vue-cli-plugin-component
yarn add vue-cli-plugin-component
pnpm add vue-cli-plugin-component
bun add vue-cli-plugin-component
README

vue-cli-plugin-component

Npm version npm MIT License

component plugin for vue-cli

demo

project
│   README.md
│   LICENSE (optional)
└───src
│   ├── index.js
│   └───components
│       └───Mycomponent.vue
│
└───example
    ├── App.vue
    ├── main.js

Features

  • Adjust build script to only build the component. Use serve script to serve a demo page.

  • Create a prepublishOnly script to run the build(s) before publishing the component

  • Update README.md with component information

  • Optional

Scripts

Use build to build the component

npm run build

Use serve to serve the application example in the example folder

npm run serve

When using vue.doc

Use doc:build to update the API section of README.md with generated documentation

npm run doc:build

When using vueStyleguide

Use styleguide to run style guide dev server

npm run styleguide

Use styleguide:build to generate a static HTML style guide

npm run styleguide:build

Configuration

configuration

  • componentName: the name of the component.

  • useVueStyleguidist: true to install vue-styleguidist, default: true

  • useVueDoc: true to install vuedoc.md, default: true

  • addLicense true to add a License file to the project, default: false

  • licenseName type of the license file to create, default: MIT

  • copyrightHolders Project copy holders, used when creating the license file.

Injected Commands

No command will be injected.

Installing in an Already Created Project

vue add component

Injected webpack-chain Rules

No Changes are performed

版本列表
1.12.2 2019-10-08
1.12.1 2019-09-20
1.12.0 2019-09-17
1.11.2 2019-09-15
1.11.1 2019-09-15
1.11.0 2019-09-12
1.10.5 2018-12-17
1.10.4 2018-12-16
1.10.3 2018-12-16
1.10.2 2018-12-16
1.10.1 2018-12-16
1.10.0 2018-12-16
1.9.1 2018-12-14
1.9.0 2018-12-14
1.8.6 2018-12-02
1.8.5 2018-12-02
1.8.4 2018-12-02
1.8.3 2018-12-02
1.8.2 2018-12-02
1.8.1 2018-12-02
1.8.0 2018-12-02
1.7.1 2018-07-31
1.7.0 2018-07-31
1.6.6 2018-07-30
1.6.5 2018-07-30
1.6.4 2018-07-30
1.6.3 2018-07-30
1.6.2 2018-07-29
1.6.1 2018-07-29
1.6.0 2018-07-29
1.5.0 2018-07-29
1.4.3 2018-07-29
1.4.2 2018-07-28
1.4.1 2018-07-28
1.4.0 2018-07-28
1.3.2 2018-07-28
1.3.1 2018-07-28
1.3.0 2018-07-28
1.2.7 2018-07-28
1.2.6 2018-07-28
1.2.5 2018-07-27
1.2.4 2018-07-27
1.2.3 2018-07-27
1.2.2 2018-07-27
1.2.1 2018-07-27
1.2.0 2018-07-27
1.1.2 2018-07-26
1.1.1 2018-07-26
1.1.0 2018-07-26
1.0.0 2018-07-24
0.0.23 2018-07-24
0.0.22 2018-07-24
0.0.21 2018-07-24
0.0.20 2018-07-24
0.0.19 2018-07-24
0.0.18 2018-07-24
0.0.17 2018-07-24
0.0.15 2018-07-24
0.0.14 2018-07-24
0.0.13 2018-07-24
0.0.12 2018-07-24
0.0.11 2018-07-24
0.0.10 2018-07-24
0.0.9 2018-07-24
0.0.8 2018-07-24
0.0.7 2018-07-24
0.0.6 2018-07-23
0.0.5 2018-07-23
0.0.4 2018-07-23
0.0.3 2018-07-23
0.0.2 2018-07-23
0.0.1 2018-07-23