.vue-standalone-component.A theme for the Vue cli is actually readily available to help you build components along with livecoding, tests, documents and also demos. Build your standalone components utilizing this very small design template.Using this template you will definitely have the ability to:.Present the directory of your componet: src elements components.vue.Provide the element docs.Display props, approaches & celebrations.Present the part's segregated usage instructions.Filter components through title.as well as much more ...Utilization.This template is actually Vue 2.x only.This is a task theme for vue-cli.$ npm install -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm set up.While running the above demands you will obtain some causes and also some directions in steps about just how to write parts.After you are actually carried out run:.$ npm operated provide.You can right now watch design manual in the browser. exploring:.Neighborhood: http://localhost:6062/.The created result in./ dist could be made use of along with nodule as well as the internet browser.PS: to construct to UMD run npm function build: umd.What's Consisted of.Linting.$ npm functioned lint.Screening & Test Insurance Coverage.$ npm functioned test.$ npm worked test: check out.$ npm run examination: cov.Building.ES6 Components/ CommonJS.$ npm run construct.import myCmp from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm run construct: umd.
If you are actually intrigued for additional about this design template or even you have any kind of pointers or pests, click here.