.vue-standalone-component.A theme for the Vue cli is on call to help you construct parts along with livecoding, examinations, paperwork and demos. Build your standalone components using this tiny theme.Utilizing this design template you will certainly manage to:.Show the directory site of your componet: src elements components.vue.Specify the part doctors.Feature props, strategies & occasions.Feature the part's separated use guidelines.Filter parts by label.as well as more ...Use.This design template is actually Vue 2.x simply.This is actually a job layout for vue-cli.$ npm put in -g vue-cli.$ vue init InCuca/vue-standalone-component my-component.$ cd my-component.$ npm set up.While running the above commands you will receive some urges and also some directions symphonious regarding just how to write elements.After you are actually performed operate:.$ npm run serve.You can currently watch style quick guide in the internet browser. going to:.Local: http://localhost:6062/.The created output in./ dist can be made use of along with node as well as the internet browser.PS: to develop to UMD operate npm function develop: umd.What is actually Featured.Linting.$ npm operated lint.Screening & Examination Protection.$ npm functioned test.$ npm operated examination: view.$ npm run test: cov.Property.ES6 Modules/ CommonJS.$ npm operate create.import myCmp from 'dist/my-cmp'.Vue.component(' my-cmp', myCmp).UMD.$ npm run develop: umd.
If you are actually curious for additional concerning this design template or you have any type of suggestions or pests, go here.