vue-lowdb
v1.0.0
Published
Bind vue data to a lowdb database
Downloads
19
Readme
VueLowdb
Bind vue data to a lowdb database
Installation
npm install --save vue-lowdb
yarn add vue-lowdb
Usage
Bundler (Webpack, Rollup)
import Vue from 'vue'
import VueLowdb from 'vue-lowdb'
Vue.use(VueLowdb)
Browser
<!-- Include after Vue -->
<!-- Local files -->
<script src="vue-lowdb/dist/vue-lowdb.js"></script>
<!-- From CDN -->
<script src="https://unpkg.com/vue-lowdb"></script>
Development
Launch visual tests
npm run dev
Launch Karma with coverage
npm run dev:coverage
Build
Bundle the js and css of to the dist
folder:
npm run build
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