From 22240a1f3a6efb05dec41ff37857f4e5b2fa0a11 Mon Sep 17 00:00:00 2001 From: te Date: Thu, 15 Aug 2024 15:03:46 -0400 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20put=20more=20in=20$lib?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/{ => lib}/components/Background.svelte | 0 src/{ => lib}/data/links.json | 0 src/{ => lib}/data/sponsors.json | 0 src/routes/+page.svelte | 6 +++--- svelte.config.js | 4 ++-- tsconfig.json | 6 ++++++ 6 files changed, 11 insertions(+), 5 deletions(-) rename src/{ => lib}/components/Background.svelte (100%) rename src/{ => lib}/data/links.json (100%) rename src/{ => lib}/data/sponsors.json (100%) create mode 100644 tsconfig.json diff --git a/src/components/Background.svelte b/src/lib/components/Background.svelte similarity index 100% rename from src/components/Background.svelte rename to src/lib/components/Background.svelte diff --git a/src/data/links.json b/src/lib/data/links.json similarity index 100% rename from src/data/links.json rename to src/lib/data/links.json diff --git a/src/data/sponsors.json b/src/lib/data/sponsors.json similarity index 100% rename from src/data/sponsors.json rename to src/lib/data/sponsors.json diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 6f1046b..99ea7d0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -2,9 +2,9 @@ import { onMount } from "svelte"; import { Marquee } from "@selemondev/svelte-marquee"; import "@selemondev/svelte-marquee/dist/style.css"; -import Background from "../components/Background.svelte"; -import links from "../data/links.json"; -import sponsors from "../data/sponsors.json"; +import Background from "$lib/components/Background.svelte"; +import links from "$lib/data/links.json"; +import sponsors from "$lib/data/sponsors.json"; let contactForm: HTMLFormElement; onMount(() => { contactForm.reset(); diff --git a/svelte.config.js b/svelte.config.js index aa7fea7..af67b01 100644 --- a/svelte.config.js +++ b/svelte.config.js @@ -1,9 +1,9 @@ import adapter from "@sveltejs/adapter-netlify"; -import preprocess from "svelte-preprocess"; +import {sveltePreprocess} from "svelte-preprocess"; /** @type {import('@sveltejs/kit').Config} */ const config = { - preprocess: [preprocess()], + preprocess: [sveltePreprocess()], kit: { adapter: adapter({ precompress: true, diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..b6f455d --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,6 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "verbatimModuleSyntax": true, + }, +} \ No newline at end of file