Skip to content
πŸ›  A simple template for building and publishing Vue component/library as a opensource.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
template 🎨 Clean template Jul 17, 2018
LICENSE
README.md
meta.json

README.md

vue-lib-template

πŸ›  A simple template for building and publishing Vue component/library as a opensource, Base on webpack-simple & 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

$ npm install -g vue-cli 
  • Initial component/library
$ 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.
$ npm run build:example
  • Building component/library.
$ npm run build:lib
  • Publishing to npm. (Please run npm run build:lib and npm version patch before publish to NPM)
$ npm publish

πŸ™πŸ» Support

If you like this project, You can support me with starring ⭐ this repository.

πŸ–Š License

MIT

Developed with ❀️ and β˜•οΈ

You can’t perform that action at this time.