See sococoin.
yarn add socomodule
npm i --save socomodule
npm run serve
import Socomodule from 'socomodule';
import 'socomodule/dist/socomodule.min.css';
Vue.component('socomodule', Socomodule);
<socomodule text="Hello World!"></socomodule>
<socomodule text="Hello World!"></socomodule>
<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/socomodule.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/socomodule.min.css">
<script type="text/javascript">
Vue.component('socomodule', window.Socomodule);
</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