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

https://github.com/biigpongsatorn/vue-lib-template

๐Ÿ›  A simple template for building and publishing Vue component/library as a opensource.
https://github.com/biigpongsatorn/vue-lib-template

boilerplate building cli component generate generator lib library npm npm-module npm-package opensource publishing simple template vue webpack

Last synced: 7 months ago
JSON representation

๐Ÿ›  A simple template for building and publishing Vue component/library as a opensource.

Awesome Lists containing this project

README

          

# vue-lib-template
๐Ÿ›  A simple template for building and publishing Vue component/library as a opensource, Base on [webpack-simple](https://github.com/vuejs-templates/webpack-simple) & [bili](https://github.com/egoist/bili)

# ๐Ÿ’ก Feature
- Light weight template.
- Zero config bundler.
- Included build with minification.
- Quick prototyping.
- This template is Vue 2.0 compatible.
- Included demo page.

# ๐Ÿ’ป Usage

- Install [vue-cli](https://github.com/vuejs/vue-cli)
``` bash
$ npm install -g vue-cli
```

- Initial component/library
``` bash
$ vue init biigpongsatorn/vue-lib-template my-project
$ cd my-project
$ npm install
$ npm run dev
```

# ๐Ÿ—‚ Directory Structure

```
my-project
โ”‚
โ”œโ”€โ”€ example
โ”‚ โ”œโ”€โ”€ App.vue
โ”‚ โ””โ”€โ”€ main.js
โ”œโ”€โ”€ src
โ”‚ โ””โ”€โ”€ index.vue
โ”œโ”€โ”€ .babelrc
โ”œโ”€โ”€ .editorconfig
โ”œโ”€โ”€ .gitignore
โ”œโ”€โ”€ .npmignore
โ”œโ”€โ”€ bili.config.js
โ”œโ”€โ”€ index.html
โ”œโ”€โ”€ package.json
โ”œโ”€โ”€ README.md
โ””โ”€โ”€ webpack.config.js
```

# ๐Ÿ› Building
- Building demo page.
``` bash
$ npm run build:example
```

- Building component/library.
``` bash
$ npm run build:lib
```

- Publishing to npm. (Please run `npm run build:lib` and `npm version patch` before publish to NPM)
``` bash
$ npm publish
```

# ๐Ÿ™๐Ÿป Support

```
If you like this project, You can support me with starring โญ this repository.
```

# ๐Ÿ–Š License

[MIT](LICENSE)

Developed with โค๏ธ and โ˜•๏ธ