.vue-standalone-component.A layout for the Vue cli is actually offered to aid you develop components along with livecoding, tests, information as well as demos. Develop your standalone components utilizing this tiny layout.Utilizing this theme you will certainly have the capacity to:.Present the directory of your componet: src elements components.vue.Provide the element doctors.Display props, procedures & activities.Show the part's segregated usage instructions.Filter components by name.as well as much more ...Usage.This design template is Vue 2.x merely.This is actually a venture layout for vue-cli.$ npm set up -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm set up.While running the above commands you are going to get some motivates and some directions in steps concerning exactly how to write components.After you are actually carried out run:.$ npm run offer.You may right now watch design resource in the web browser. exploring:.Local: http://localhost:6062/.The generated output in./ dist can be used with node as well as the browser.PS: to construct to UMD operate npm operate build: umd.What's Included.Linting.$ npm operated dust.Testing & Test Protection.$ npm run exam.$ npm operated test: check out.$ npm operated exam: cov.Property.ES6 Components/ CommonJS.$ npm run construct.import myCmp from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm operate construct: umd.
If you are fascinated for additional about this template or even you possess any kind of tips or pests, visit here.