Last active
August 21, 2020 07:36
-
-
Save cristian-frumusanu/c6038dd6fac37e49f22bcbdfb6df8aaf to your computer and use it in GitHub Desktop.
VS Code Snippets: Vue.js + TypeScript
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Vue.js Component": { | |
"prefix": "vue-component", | |
"body": [ | |
"import { Vue, Component } from 'vue-property-decorator';", | |
"", | |
"@Component", | |
"export default class $1 extends Vue {", | |
"", | |
"}" | |
], | |
"description": "Create Vue.js component with decorator" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Vue.js .vue file with TypeScript": { | |
"prefix": "vue-file", | |
"body": [ | |
"<template>", | |
"\t<div>", | |
"\t</div>", | |
"</template>\n", | |
"<script lang=\"ts\" src=\"./$1.ts\"></script>\n", | |
"<style lang=\"scss\" src=\"./$1.scss\"></style>\n", | |
], | |
"description": "Create base .vue file with TypeScript and SCSS" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment