.vue-standalone-component.A template for the Vue cli is actually accessible to assist you develop elements along with livecoding, examinations, records as well as demonstrations. Build your standalone parts utilizing this small theme.Using this design template you will definitely manage to:.Display the directory site of your componet: src components components.vue.Detail the component doctors.Display props, approaches & celebrations.Feature the element’s segregated utilization instructions.Filter elements by label.and even more …Consumption.This theme is actually Vue 2.x merely.This is actually a task design template for vue-cli.$ npm put in -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm put in.While running the above demands you will certainly get some triggers as well as some directions in steps regarding just how to write elements.After you are done run:.$ npm operated provide.You can now view style manual in the internet browser. checking out:.Regional: http://localhost:6062/.The produced result in./ dist can be utilized along with nodule as well as the web browser.PS: to create to UMD run npm function develop: umd.What is actually Included.Linting.$ npm functioned lint.Screening & Examination Protection.$ npm functioned exam.$ npm worked test: watch.$ npm functioned examination: cov.Property.ES6 Elements/ CommonJS.$ npm run develop.import myCmp coming from ‘dist/my-cmp’.Vue.component(‘ my-cmp’, myCmp).UMD.$ npm operate construct: umd.
If you are curious for more concerning this design template or even you have any sort of tips or even bugs, click here.