From 82d238cc10f413275ccfc225fbe76bc6860188ea Mon Sep 17 00:00:00 2001 From: Vasily Kuzin Date: Sat, 15 Oct 2022 14:37:58 +0300 Subject: [PATCH 1/8] Histoire config snippets #20 --- package.json | 8 +++++++ snippets/histoire-script.code-snippets | 32 ++++++++++++++++++++++++++ 2 files changed, 40 insertions(+) create mode 100644 snippets/histoire-script.code-snippets diff --git a/package.json b/package.json index 5a75aac..ec275e7 100644 --- a/package.json +++ b/package.json @@ -90,6 +90,14 @@ { "language": "typescript", "path": "./snippets/nuxt-script.code-snippets" + }, + { + "language": "javascript", + "path": "./snippets/histoire-script.code-snippets" + }, + { + "language": "typescript", + "path": "./snippets/histoire-script.code-snippets" } ] } diff --git a/snippets/histoire-script.code-snippets b/snippets/histoire-script.code-snippets new file mode 100644 index 0000000..676d11c --- /dev/null +++ b/snippets/histoire-script.code-snippets @@ -0,0 +1,32 @@ +{ + "Histoire config": { + "prefix": "hconfig", + "body": [ + "import { defineConfig } from 'histoire'", + "import { HstVue } from '@histoire/plugin-vue'", + "", + "export default defineConfig({", + "\tplugins: [", + "\t\tHstVue(),", + "\t],", + "})" + ], + "description": "Histoire config for Vue 3" + }, + "Histoire config - Nuxt": { + "prefix": "hconfig-nuxt", + "body": [ + "import { defineConfig } from 'histoire'", + "import { HstVue } from '@histoire/plugin-vue'", + "import { HstNuxt } from '@histoire/plugin-nuxt'", + "", + "export default defineConfig({", + "\tplugins: [", + "\t\tHstVue(),", + "\t\tHstNuxt(),", + "\t],", + "})" + ], + "description": "Histoire config for Nuxt 3" + }, +} From a63ba6d4d300798f7a5e5d50f25e6d46702f128d Mon Sep 17 00:00:00 2001 From: Vasily Kuzin Date: Sat, 15 Oct 2022 14:48:45 +0300 Subject: [PATCH 2/8] Histoire story base #20 --- package.json | 4 ++++ snippets/histoire.code-snippets | 17 +++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 snippets/histoire.code-snippets diff --git a/package.json b/package.json index ec275e7..af4ed60 100644 --- a/package.json +++ b/package.json @@ -91,6 +91,10 @@ "language": "typescript", "path": "./snippets/nuxt-script.code-snippets" }, + { + "language": "vue", + "path": "./snippets/histoire.code-snippets" + }, { "language": "javascript", "path": "./snippets/histoire-script.code-snippets" diff --git a/snippets/histoire.code-snippets b/snippets/histoire.code-snippets new file mode 100644 index 0000000..3a4b727 --- /dev/null +++ b/snippets/histoire.code-snippets @@ -0,0 +1,17 @@ +{ + "Histoire story base": { + "prefix": "hbase", + "body": [ + "", + "", + "", + ], + "description": "Base code for story" + }, +} From 690bf6a5ed3ddc5b91eb48548e7ca774ae29b7c9 Mon Sep 17 00:00:00 2001 From: Vasily Kuzin Date: Sat, 15 Oct 2022 14:50:24 +0300 Subject: [PATCH 3/8] Remove extra line in vue snippets --- snippets/vue.code-snippets | 21 +++++++-------------- 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/snippets/vue.code-snippets b/snippets/vue.code-snippets index 7a80abf..dae7bd4 100644 --- a/snippets/vue.code-snippets +++ b/snippets/vue.code-snippets @@ -4,8 +4,7 @@ "body": [ "" - , + "", "", "