.vue-standalone-component.A theme for the Vue cli is readily available to aid you create elements with livecoding, exams, documentation and trials. Build your standalone components using this small template.Using this theme you will certainly manage to:.Display the directory site of your componet: src components components.vue.List the element doctors.Present props, methods & events.Present the part's segregated consumption guidelines.Filter components by label.as well as much more ...Utilization.This theme is Vue 2.x merely.This is a task layout for vue-cli.$ npm install -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm put in.While operating the above orders you will definitely get some urges as well as some directions symphonious regarding how to write components.After you are actually carried out run:.$ npm run serve.You may now view type guide in the browser. checking out:.Local: http://localhost:6062/.The generated result in./ dist could be utilized along with node and the browser.PS: to construct to UMD operate npm operate construct: umd.What's Featured.Linting.$ npm run dust.Testing & Test Coverage.$ npm functioned exam.$ npm functioned examination: check out.$ npm operated test: cov.Structure.ES6 Components/ CommonJS.$ npm operate construct.import myCmp coming from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm operate construct: umd.
If you are actually curious for additional about this layout or even you possess any kind of tips or pests, click on this link.