1.0.6 • Published 8 years ago
vue-cc v1.0.6
This npm repository provide you a commend line to create vue component.
The vcc commend
The commend vcc someName will create a folder with the name someName and 3 files inside the folder
The files:
- someName.tempalete.html
- someName.style.scss
- someName.vue
someName.tempalete.html content
<!-- Important id bind to the id name of the component in the vue file -->
<div id="access">
</div>someName.style.scss content
.someName{
}someName.vue content
<template src="./access.template.html"></template>
<style lang="scss" scoped src="./access.style.scss"></style>
<script lang="ts">
import Vue from "vue";
export default Vue.extend({
name: 'access',
components: {},
data: () => {
return {}
},
methods: {},
created() {}
})
</script>###to use it use
npm install vue-cc --save-dev
npm install vue-cc -gand then use it from your cmd
vcc someName