0.2.5 • Published 5 years ago
vue-viewport-manager v0.2.5
Vue viewport manager
A Vue.js gauge panel to explore an ocean of viewports
Installation
npm install --save vue-viewport-managerUsage
Import vue-viewport-manager in your JS entry point and install it via Vue.use()
import Vue from 'vue'
import VueViewportManager from 'vue-viewport-manager'
Vue.use(VueViewportManager, {store})The plugin needs your Vuex store instance to register its own (namespaced) module called vueViewportManager.
You can also override default options when installing it
Vue.use(VueViewportManager, {
option: '...'
})The plugin exposes a global mixin that allows one to access several viewport-related reactive variables, namely:
TODO: describe plugin functionalities
Development
Launch webpack dev server
npm run devLaunch tests with Jest
Launch the test command, which will perform linting beforehand
npm run testBuild
Launch the build command, which will output a minified bundle in the dist folder
npm run buildPublishing
TODO