Sleep

Vue cli template to develop components along with livecoding, tests, information &amp more

.vue-standalone-component.A layout for the Vue cli is actually available to help you develop elements with livecoding, exams, documentation and demonstrations. Construct your standalone components using this small design template.Using this template you will definitely manage to:.Present the listing of your componet: src components components.vue.Specify the component docs.Present props, procedures &amp activities.Feature the element's isolated usage instructions.Filter parts through label.as well as extra ...Utilization.This layout is actually Vue 2.x merely.This is actually a venture template for vue-cli.$ npm mount -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm put up.While operating the above demands you will definitely get some triggers and also some directions symphonious regarding just how to compose parts.After you are actually done run:.$ npm managed offer.You can currently watch type quick guide in the web browser. checking out:.Regional: http://localhost:6062/.The created outcome in./ dist could be utilized with nodule and also the web browser.PS: to develop to UMD run npm work create: umd.What's Consisted of.Linting.$ npm functioned lint.Screening &amp Exam Coverage.$ npm worked examination.$ npm worked test: watch.$ npm worked test: cov.Structure.ES6 Components/ CommonJS.$ npm run construct.bring in myCmp coming from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm operate construct: umd.
If you are interested for even more about this layout or you have any pointers or even bugs, go here.

Articles You Can Be Interested In