A Vue.js component module
$ npm run build
import MyComponent from 'dist/my-component';
Vue.component('my-component', MyComponent);
<my-component text="Hello World!"></my-component>
$ npm run build:umd
<my-component text="Hello World!"></my-component>
<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/my-component.min.js" charset="utf-8"></script>
<script type="text/javascript">
Vue.component('my-component', window.MyComponent);
</script>
yarn add my-component
npm i --save my-component
npm run serve
This template uses karma with chai by default, you can change test settings in poi.config.js
npm run test
npm run test:watch
npm run test:cov
This project is licensed under MIT License