vca-widget-emoto

Implements an Emoto widget for Viva con Aguas Pool².

Usage no npm install needed!

<script type="module">
  import vcaWidgetEmoto from 'https://cdn.skypack.dev/vca-widget-emoto';
</script>

README

vca-widget-emoto

npm vue2

Implements a widget to integrate Emoto into Viva con Aguas Pool².

Installation

npm install --save vca-widget-emoto

Usage

Bundler (Webpack, Rollup)

import Vue from 'vue'
import { EmotoButton } from 'vca-widget-emoto'

export default {
  name: 'App',
  components: { EmotoButton }
}

Inside your template:

<template>
  <div id="app">
    <EmotoButton />
  </div>
</template>

Browser

<!-- Include after Vue -->
<!-- Local files -->
<link rel="stylesheet" href="vca-widget-emoto/dist/vca-widget-emoto.css"></link>
<script src="vca-widget-emoto/dist/vca-widget-emoto.js"></script>

<!-- From CDN -->
<link rel="stylesheet" href="https://unpkg.com/vca-widget-emoto/dist/vca-widget-emoto.css"></link>
<script src="https://unpkg.com/vca-widget-emoto"></script>

Development

Launch visual tests

npm run serve

Build

Bundle the js and css of to the dist folder:

npm run lib

Publishing

The prepublish hook will ensure dist files are created before publishing. This way you don't need to commit them in your repository.

# Bump the version first
# It'll also commit it and create a tag
npm version
# Push the bumped package and tags
git push --follow-tags
# Ship it 🚀
npm publish

License