From 4ea188082a1af7cdc20063308dfed61e4c536751 Mon Sep 17 00:00:00 2001 From: CRBroughton Date: Sun, 20 Feb 2022 15:48:57 +0000 Subject: [PATCH 1/4] Revert "removed yarn.lock" This reverts commit 289173b7a2ac7dca2ce1012a6cf750b747c05a49. --- yarn.lock | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 yarn.lock diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..fb57ccd --- /dev/null +++ b/yarn.lock @@ -0,0 +1,4 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + From ef3aca8504b2ff4f61123de65f76cd2c71aa9e06 Mon Sep 17 00:00:00 2001 From: CRBroughton Date: Sun, 20 Feb 2022 15:52:00 +0000 Subject: [PATCH 2/4] added vue-html --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 2066fb6..b0b05c1 100644 --- a/package.json +++ b/package.json @@ -42,6 +42,10 @@ "language": "html", "path": "./snippets/vue-template.json" }, + { + "language": "vue-html", + "path": "./snippets/vue-template.json" + }, { "language": "javascript", "path": "./snippets/vue-script.json" From f149d00beb3e8712b614b4543c80b4277900bce2 Mon Sep 17 00:00:00 2001 From: CRBroughton Date: Sun, 11 Jun 2023 11:38:57 +0100 Subject: [PATCH 3/4] replace yarn with npm --- package-lock.json | 16 ++++++++++++++++ package.json | 4 ++-- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..06fee63 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,16 @@ +{ + "name": "vue-vscode-snippets", + "version": "3.1.4", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "vue-vscode-snippets", + "version": "3.1.4", + "hasInstallScript": true, + "engines": { + "vscode": "^1.14.0" + } + } + } +} diff --git a/package.json b/package.json index 2066fb6..6e8a113 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Vue VSCode Snippets", "description": "Snippets that will supercharge your Vue workflow", "icon": "images/vue-logo.png", - "version": "3.1.1", + "version": "3.1.4", "publisher": "sdras", "engines": { "vscode": "^1.14.0" @@ -14,7 +14,7 @@ }, "scripts": { "build": "vsce package -o vue-vscode-snippets-$npm_package_version.vsix", - "install": "yarn build && code --install-extension vue-vscode-snippets-$npm_package_version.vsix" + "install": "npm run build && code --install-extension vue-vscode-snippets-$npm_package_version.vsix" }, "keywords": [ "Vue", From b3c56dbb9189ab0b76bf117eac2fb997f2b4318c Mon Sep 17 00:00:00 2001 From: CRBroughton Date: Fri, 29 Dec 2023 12:04:20 +0000 Subject: [PATCH 4/4] add defineModel, update defineEmits & defineSlots --- package.json | 2 +- snippets/vue-script.json | 27 +++++++++++++++------------ 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 92ae90e..dfe6b00 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "displayName": "Vue VSCode Snippets", "description": "Snippets that will supercharge your Vue workflow", "icon": "images/vue-logo.png", - "version": "3.1.4", + "version": "3.1.5", "publisher": "sdras", "engines": { "vscode": "^1.14.0" diff --git a/snippets/vue-script.json b/snippets/vue-script.json index 0aa4695..eaf4a42 100644 --- a/snippets/vue-script.json +++ b/snippets/vue-script.json @@ -317,29 +317,32 @@ ], "description": "Vue Composition api - defineProps with Interface" }, - "Vue Composition API - defineEmits with Interface": { + "Vue Composition API - defineEmits": { "prefix": "v3emits", "body": [ - "interface Emits {", + "const emit = defineEmits<{", "\tfoo: [id: number]", "\tbar: [name: string, ...rest: any[]]", - "}", - "", - "const emit = defineEmits()" + "}>()" ], - "description": "Vue Composition api - defineEmits with Interface" + "description": "Vue Composition api - defineEmits" }, - "Vue Composition API - defineSlots with Interface": { + "Vue Composition API - defineSlots": { "prefix": "v3slots", "body": [ - "interface Slots {", + "const slots = defineSlots<{", "\tdefault?: (props: { msg: string }) => any", "\titem?: (props: { id: number }) => any", - "}", - "", - "const slots = defineSlots()" + "}>()" + ], + "description": "Vue Composition api - defineSlots" + }, + "Vue Composition API - defineModel": { + "prefix": "v3model", + "body": [ + "const title = defineModel('title', { required: true })" ], - "description": "Vue Composition api - defineEmits with Interface" + "description": "Vue Composition api - defineModel" }, "Vue Composition API - Store using Provide / Inject": { "prefix": "v3store",