cdh.vue.vbuild module

class cdh.vue.vbuild.VBuild(filename, content, component)[source]

Bases: VBuild

__init__(filename, content, component)[source]

Create a VBuild class, by providing a : filename: which will be used to name the component, and create the namespace for the template content: the string buffer which contains the sfc/vue component

Overridden to provide change some behaviour. (Like, not using a full path as unique….)

DOES NOT SUPPORT PYTHON MODULES

property script

Return JS (js of embbeded components), after transScript

cdh.vue.vbuild.render(component)[source]

Helpers to render VBuild’s instances by providing filenames or pattern (glob’s style)

cdh.vue.vbuild.topological_sort(items: List[_VueJs])[source]

Sorts dependencies using a topological sort algorithm. In other words, makes sure that for any _VueJS, it ensures it’s dependencies have been added before it