vue-cli-plugin-component

vue-cli 3 plugin to develop component
41,339 83
Install
npm install vue-cli-plugin-component
Latest Version:1.12.2
License:MIT
Last Updated:Dec 7, 2022
Links: GitHub  ·  npm
Maintainer: davidesmaisons

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

Related Packages

vue-cli-plugin-lodash

vue-cli plugin for lodash

4,260 4
@phiny1/vue-cli-plugin-p11n

Vue CLI 3 plugin to pluginize your Vue project

3,992
vue-cli-plugin-p11n

Vue CLI 3 plugin to pluginize your Vue project

2,767 111
vue-cli-plugin-vplugin

Vue CLI 3 plugin to pluginize your Vue project based off p11n

927 0
vue-cli-plugin-i18n

Vue CLI plugin to add vue-i18n to your Vue Project

1,598,869 194

Version History

Version Released License
1.12.2 MIT
1.12.1 MIT
1.12.0 MIT
1.11.2 MIT
1.11.1 MIT