Implements comment section.
npm install --save vca-upsweep
import Vue from 'vue'
import { UpsweepView } from 'vca-upsweep'
import 'vca-upsweep/dist/vca-upsweep.css'
export default {
name: 'App',
components: { UpsweepView }
}
Inside your template:
<template>
<div id="app">
<UpsweepView poolEventId=""></UpsweepView>
</div>
</template>
npm run serve
Bundle the js and css of to the dist
folder:
npm run lib
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