π A simple template for building and publishing Vue component/library as a opensource, Base on webpack-simple & bili
- Light weight template.
- Zero config bundler.
- Included build with minification.
- Quick prototyping.
- This template is Vue 2.0 compatible.
- Included demo page.
- Install vue-cli
$ npm install -g vue-cli
- Initial component/library
$ vue init biigpongsatorn/vue-lib-template my-project
$ cd my-project
$ npm install
$ npm run dev
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 demo page.
$ npm run build:example
- Building component/library.
$ npm run build:lib
- Publishing to npm. (Please run
npm run build:lib
andnpm version patch
before publish to NPM)
$ npm publish
If you like this project, You can support me with starring β this repository.
Developed with β€οΈ and βοΈ