{{ description }}
yarn add {{ name }}
npm i --save {{ name }}
npm run serve
import {{ camelcase name }} from '{{ name }}';
import '{{ name }}/dist/{{ name }}.min.css';
Vue.component('{{ name }}', {{ camelcase name }});
<{{name}} text="Hello World!"></{{name}}>
<{{name}} text="Hello World!"></{{name}}>
<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/{{ name }}.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/{{ name }}.min.css">
<script type="text/javascript">
Vue.component('{{ name }}', window.{{ camelcase name }}.default);
</script>
Build configuration is located in the poi.config.js
file, to build just run: npm run build
, it will build to cjs
and umd
directories.
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