v-hello-world

A Vue.js component module

Usage no npm install needed!

<script type="module">
  import vHelloWorld from 'https://cdn.skypack.dev/v-hello-world';
</script>

README

hello-world

A Vue.js component module

Installation

Using yarn

yarn add hello-world

Using npm

npm i --save hello-world

Demo and Docs

npm run serve

Usage

ES6 Modules / CommonJS

import HelloWorld from 'hello-world';
import 'hello-world/dist/hello-world.min.css';

Vue.component('hello-world', HelloWorld);
<hello-world text="Hello World!"></hello-world>

UMD

<hello-world text="Hello World!"></hello-world>

<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/hello-world.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/hello-world.min.css">

<script type="text/javascript">
  Vue.component('hello-world', window.HelloWorld.default);
</script>

Build

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.

Tests

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

License

This project is licensed under MIT License