All files / lib index.js

80% Statements 8/10
66.67% Branches 4/6
100% Functions 1/1
80% Lines 8/10
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31          18x   18x       18x     18x 990x       18x 54x         18x          
import * as components from './components';
import * as directives from './directives';
 
/* eslint-disable no-var, no-undef, guard-for-in, object-shorthand */
 
const VuePlugin = {
    install: function (Vue) {
        Iif (Vue._bootstrap_vue_installed) {
            return;
        }
 
        Vue._bootstrap_vue_installed = true;
 
        // Register components
        for (var component in components) {
            Vue.component(component, components[component]);
        }
 
        // Register directives
        for (var directive in directives) {
            Vue.directive(directive, directives[directive]);
        }
    }
};
 
Iif (typeof window !== 'undefined' && window.Vue) {
    window.Vue.use(VuePlugin);
}
 
export default VuePlugin;