Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ravenq/vue-cli-plugin-component-lib
create a component lib with example for @vue/cli 3.0.
https://github.com/ravenq/vue-cli-plugin-component-lib
component lib plugin vue vue-cli-plugin vuecli3
Last synced: about 1 month ago
JSON representation
create a component lib with example for @vue/cli 3.0.
- Host: GitHub
- URL: https://github.com/ravenq/vue-cli-plugin-component-lib
- Owner: ravenq
- Created: 2018-12-28T09:23:43.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-03T14:08:33.000Z (almost 6 years ago)
- Last Synced: 2024-11-14T11:20:20.224Z (about 2 months ago)
- Topics: component, lib, plugin, vue, vue-cli-plugin, vuecli3
- Language: JavaScript
- Homepage:
- Size: 262 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-cli-plugin-component-lib
[![Build Status](https://travis-ci.org/ravenq/vue-cli-plugin-component-lib.svg?branch=master)](https://travis-ci.org/ravenq/vue-cli-plugin-component-lib)
create a component lib with example for `@vue/cli` 3.0.
## Feature
* example code for your component.
* travis config if you need.
* deploy to npm by travis.## Install
First you need to install `@vue/cli` globally (follow the instructions [here](https://cli.vuejs.org/)).
Then create a project and add the Element plugin:
```bash
vue create my-app
cd my-app
vue add component-lib
```### Use with vue-cli UI
Skip this part if you've done everything in the `Install` section.
If you prefer managing your project in vue-cli UI (by running `vue ui`), here's how you can add component lib plugin: go to the Plugins menu, click the upper right `+ Add plugin` button, find `vue-cli-plugin-component-lib` and install it.
## Options
### travis
create ```.travis.yml``` for you project.
#### npm
depoly to npm by travis. and you may provide your email for you npm acount.
tips: you may config your travis env ```NPM_TOKEN``` first.
![npm token](doc/npm_token.png)
## Hack in your component
```sh
yarn serve
```