Sleep

Vue cli template to create elements along with livecoding, tests, documentation &amp even more

.vue-standalone-component.A design template for the Vue cli is actually readily available to aid you build elements along with livecoding, tests, information as well as demonstrations. Create your standalone parts using this small theme.Using this theme you will certainly have the ability to:.Feature the directory of your componet: src components components.vue.Detail the component docs.Feature props, approaches &amp celebrations.Display the component's separated consumption guidelines.Filter elements through title.and also a lot more ...Usage.This design template is actually Vue 2.x merely.This is actually a project template for vue-cli.$ npm put up -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm mount.While operating the above commands you are going to receive some motivates as well as some directions in steps about exactly how to write elements.After you are carried out operate:.$ npm operated serve.You can easily currently watch style manual in the internet browser. going to:.Local area: http://localhost:6062/.The generated outcome in./ dist could be made use of with node and the browser.PS: to build to UMD function npm work create: umd.What's Featured.Linting.$ npm run lint.Testing &amp Examination Insurance Coverage.$ npm operated exam.$ npm operated test: view.$ npm run test: cov.Building.ES6 Modules/ CommonJS.$ npm operate build.import myCmp from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm run construct: umd.
If you are intrigued for even more about this layout or you possess any sort of pointers or even pests, click here.

Articles You Can Be Interested In