UNPKG

lcap

Version:

CLI for Lcap Projects, including Application and UI Library.

30 lines (26 loc) 649 B
import * as Components from './components'; import * as logics from './logics'; const LIBRARY_NAME = '{{LIBRARY_NAME}}'; const UtilsLogics = { install: (Vue) => { Vue.prototype.$library = Vue.prototype.$library || {}; Vue.prototype.$library[LIBRARY_NAME] = { ...logics, }; }, }; const UseComponents = { install: (Vue) => { Object.keys(Components).forEach((name) => { if (Components[name].Component && Components[name].install) { Vue.component(name, Components[name].Component); return; } Vue.component(name, Components[name]) }) } }; export { UseComponents, UtilsLogics, };