UNPKG

cvc-component-library

Version:

Supporting project and code for [Vue Component Library](https://xiegerts.com/series/vue-component-library/) post series.

18 lines (14 loc) 394 B
import * as components from './components' const ComponentLibary = { install(Vue, options = {}) { // components for (const componentName in components) { const component = components[componentName] Vue.component(component.name, component) } } } export default ComponentLibary if (typeof window !== 'undefined' && window.Vue) { window.Vue.use(ComponentLibary) }