Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/shubhadip/vue3-component-library

This is a template for building vue components library.Project makes use of vue3.0 with rollup configuration to build treeshakable imports and Postcss for compilation of css
https://github.com/shubhadip/vue3-component-library

component-library library library-boilerplate postcss rollup rollupjs starter-template typescript vue vue3 vue3-project vuejs

Last synced: 11 days ago
JSON representation

This is a template for building vue components library.Project makes use of vue3.0 with rollup configuration to build treeshakable imports and Postcss for compilation of css

Awesome Lists containing this project

README

        

# vue 3 Component Library BoilerPlate

**Technology Used:**\
[Vuejs 3.0](https://github.com/vuejs/vue-next)\
[Typescript](https://github.com/microsoft/TypeScript)\
[Rollup](https://github.com/rollup/rollup)

## Project setup
Please follow below mentioned step to run this project:

- Clone the repo
```shell
https://github.com/shubhadip/vue3-component-library
```

### Run
```
yarn install
```

### Compiles and hot-reloads for development
```
yarn serve
```

### Compiles and minifies for production
```
yarn build
```

### Build Library
```
yarn build:js
```

### Build Library With Separate Css file
```
yarn build:js_css
```

### Lints and fixes files
```
yarn lint
```

## Usage Of Components Built
**As Component**
```
import { TestWorld } from 'vue3-component-library/dist/esm/testworld';
...
components:{
TestWorld
}
```

**As Plugin**
```
import { TestWorld } from 'vue3-component-library';
...
app.use(TestWorld)
```