Sleep

Vue cli design template to construct components with livecoding, exams, documentation &amp even more

.vue-standalone-component.A theme for the Vue cli is actually available to aid you build elements along with livecoding, tests, records and also demonstrations. Build your standalone elements utilizing this little template.Utilizing this design template you are going to manage to:.Present the directory of your componet: src components components.vue.Note the element doctors.Present props, procedures &amp events.Present the component's separated use guidelines.Filter elements through name.and also extra ...Utilization.This theme is Vue 2.x only.This is actually a task theme 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 commands you will certainly receive some urges and some guidelines in steps regarding exactly how to create elements.After you are actually carried out operate:.$ npm run offer.You may currently check out type overview in the internet browser. going to:.Neighborhood: http://localhost:6062/.The created result in./ dist can be made use of with node and also the internet browser.PS: to develop to UMD work npm work create: umd.What's Consisted of.Linting.$ npm functioned dust.Testing &amp Test Coverage.$ npm worked test.$ npm functioned examination: check out.$ npm functioned exam: cov.Structure.ES6 Elements/ CommonJS.$ npm operate create.import myCmp from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm operate build: umd.
If you are interested for even more concerning this layout or even you possess any pointers or even insects, visit here.

Articles You Can Be Interested In