vue-facebook-account-kit
v0.1.2
Published
A Vue.js Plugin to instantiate the facebook account kit
Downloads
14
Readme
AccountKit
A Vue.js Plugin
Installation
npm install --save vue-facebook-account-kit
Usage
Bundler (Webpack, Rollup)
import Vue from 'vue'
import AccountKit from 'vue-facebook-account-kit'
Vue.use(AccountKit)
Browser
Recomended: Use the facebook version directly instead.
<!-- Include after Vue -->
<!-- Local files -->
<script src="vue-facebook-account-kit/dist/vue-facebook-account-kit.js"></script>
<!-- From CDN -->
<script src="https://unpkg.com/vue-facebook-account-kit"></script>
Small example
https://github.com/biessek/fb-account-kit-example
Development
Launch visual tests
npm run dev
Launch Karma with coverage
npm run dev:coverage
Build
Bundle the js 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