vca-widget-emoto

0.2.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i vca-widget-emoto

Weekly Downloads

1

Version

0.2.0

License

AGPL-3.0-or-later

Unpacked Size

1.45 MB

Total Files

26

Last publish

Collaborators

  • deinelieblings