/vue-lib-template

🛠 A simple template for building and publishing Vue component/library as a opensource.

Primary LanguageJavaScriptMIT LicenseMIT

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 ☕️