From 959498b3dc6e369ca14aadb02893b134b6a2056d Mon Sep 17 00:00:00 2001 From: Ruidy Date: Wed, 1 Jan 2025 21:08:47 +0100 Subject: [PATCH] feat: add interactive astro island using vue --- package.json | 5 ++++- src/components/Greeting.vue | 17 +++++++++++++++++ src/pages/index.astro | 3 +++ tsconfig.json | 14 +++++++++++--- 4 files changed, 35 insertions(+), 4 deletions(-) create mode 100644 src/components/Greeting.vue diff --git a/package.json b/package.json index fc5869d..53ea563 100644 --- a/package.json +++ b/package.json @@ -10,8 +10,11 @@ }, "dependencies": { "@astrojs/check": "^0.9.4", + "@astrojs/rss": "^4.0.10", + "@astrojs/vue": "^5.0.3", "astro": "^5.1.1", - "typescript": "^5.7.2" + "typescript": "^5.7.2", + "vue": "^3.5.13" }, "devDependencies": { "prettier": "^3.4.2", diff --git a/src/components/Greeting.vue b/src/components/Greeting.vue new file mode 100644 index 0000000..3b5fe26 --- /dev/null +++ b/src/components/Greeting.vue @@ -0,0 +1,17 @@ + + + diff --git a/src/pages/index.astro b/src/pages/index.astro index f193250..c309e8f 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -1,9 +1,12 @@ --- import BaseLayout from "../layouts/BaseLayout.astro"; +import Greeting from "../components/Greeting.vue"; const pageTitle = "Orbital Orbit"; ---

My awesome blog subtitle

+ +
diff --git a/tsconfig.json b/tsconfig.json index 8bf91d3..0649e42 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,5 +1,13 @@ { "extends": "astro/tsconfigs/strict", - "include": [".astro/types.d.ts", "**/*"], - "exclude": ["dist"] -} + "include": [ + ".astro/types.d.ts", + "**/*" + ], + "exclude": [ + "dist" + ], + "compilerOptions": { + "jsx": "preserve" + } +} \ No newline at end of file