Skip to content

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

License

Notifications You must be signed in to change notification settings

biigpongsatorn/vue-lib-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

26 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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 β˜•οΈ