first commit

This commit is contained in:
DanielRamirezGe
2020-01-14 20:43:08 -06:00
parent 3557894f7f
commit 5eecfbf6cd
26326 changed files with 2434803 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
import Vue from 'vue';
<% if (!options.treeShake) { %>
import BootstrapVue from 'bootstrap-vue';
Vue.use(BootstrapVue, <%= JSON.stringify(options.config || {}, undefined, 2) %>);
<% } %>
<% if (options.treeShake) { %>
import {
<%= [].concat(
options.config ? 'BVConfigPlugin' : null,
options.componentPlugins,
options.directivePlugins,
options.components,
options.directives
).filter(Boolean).join(',\n ') %>
} from 'bootstrap-vue';
<% if (options.config) { %>
Vue.use(BVConfigPlugin, <%= JSON.stringify(options.config, undefined, 2) %>);
<% } %>
<%= options.componentPlugins.reduce((acc, plugin) => (acc += `Vue.use(${plugin});\n` ), '') %>
<%= options.directivePlugins.reduce((acc, plugin) => (acc += `Vue.use(${plugin});\n` ), '') %>
<%= options.components.reduce((acc, c) => (acc += `Vue.component('${c}', ${c});\n` ), '') %>
<%= options.directives.reduce((acc, d) => (acc += `Vue.directive('${d.replace(/^VB/, 'B')}', ${d});\n` ), '') %>
<% } %>