Skip to content

πŸš€ Solid foundation to start a Vue plugin with the best developer experience and a focus on performance

License

Notifications You must be signed in to change notification settings

sayuthisobri/vue-plugin-template

Β 
Β 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

vue-plugin-template

✨ DX experience & lighter plugins πŸš€

Fork of https://github.com/mgesmundo/vue-plugin-template This is a simplified version without JSX support and with a straightforward configuration.

Usage

vue init sayuthisobri/vue-plugin-template my-awesome-plugin
# Answer some questions
cd my-awesome-plugin
yarn
yarn run storybook
# πŸŽ‰

Features

Smaller plugin size

Bundle with Rollup. This produces bundles that are easier to debug and more lightweight but is less customizable than Webpack. But don't worry you can also use Webpack instead of Rollup πŸ˜‰

Single file components

Write your components using .vue files. Those will be compiled into render functions when building your plugin to make them compatible everywhere.

ES6

Use the future features of Javascript.

Advanced testing

Get the best developer experience by testing the components at the same time you interact with them using storybook.

Development-only features

Add warnings to improve the DX of your plugin that are removed when bundling in production mode:

if (process.env.NODE_ENV !== 'production' && warningCondition) {
  warn('You should be doing things this way instead: ...')
}

License

MIT

About

πŸš€ Solid foundation to start a Vue plugin with the best developer experience and a focus on performance

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 87.3%
  • Vue 12.7%