From 7ae52c891a18b1d0b500ed4e921cb527393b5ed4 Mon Sep 17 00:00:00 2001 From: hook-lord Date: Fri, 6 Dec 2024 11:24:20 +0100 Subject: [PATCH] more updates --- package.json | 80 +++++++++++++----------- src/lib/TopNav.svelte | 4 +- src/routes/projects/svelte/+page.svelte | 1 - src/routes/projects/web-dev/+page.svelte | 12 ++++ tsconfig.json | 14 +++++ vite.config.js => vite.config.ts | 0 6 files changed, 71 insertions(+), 40 deletions(-) create mode 100644 src/routes/projects/web-dev/+page.svelte create mode 100644 tsconfig.json rename vite.config.js => vite.config.ts (100%) diff --git a/package.json b/package.json index cfbc2a7..c115d29 100644 --- a/package.json +++ b/package.json @@ -1,39 +1,45 @@ { - "name": "my-portfolio", - "version": "0.0.1", - "private": true, - "scripts": { - "dev": "vite dev", - "build": "vite build", - "preview": "vite preview", - "lint": "prettier --check . && eslint .", - "format": "prettier --write ." - }, - "devDependencies": { - "@sveltejs/adapter-auto": "^3.0.0", - "@sveltejs/kit": "^2.0.0", - "@sveltejs/vite-plugin-svelte": "^3.0.0", - "@types/eslint": "^8.56.0", - "autoprefixer": "^10.4.19", - "eslint": "^8.56.0", - "eslint-config-prettier": "^9.1.0", - "eslint-plugin-svelte": "^2.35.1", - "flowbite": "^2.3.0", - "flowbite-svelte": "^0.46.1", - "flowbite-svelte-icons": "^1.6.1", - "postcss": "^8.4.38", - "prettier": "^3.1.1", - "prettier-plugin-svelte": "^3.1.2", - "svelte": "^4.2.7", - "tailwindcss": "^3.4.3", - "vite": "^5.0.3" - }, - "type": "module", - "dependencies": { - "@sveltejs/adapter-vercel": "^5.3.0", - "@vercel/analytics": "^1.3.1", - "geist": "^1.3.0", - "moment": "^2.30.1", - "pnpm": "^9.1.1" - } + "name": "my-portfolio", + "version": "0.0.1", + "private": true, + "scripts": { + "dev": "vite dev", + "build": "vite build", + "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json", + "check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch", + "preview": "vite preview", + "lint": "prettier --check . && eslint .", + "format": "prettier --write ." + }, + "devDependencies": { + "@sveltejs/adapter-auto": "^3.3.1", + "@sveltejs/kit": "^2.9.0", + "@sveltejs/vite-plugin-svelte": "^5.0.1", + "@tsconfig/svelte": "^5.0.4", + "@types/eslint": "^9.6.1", + "@types/node": "^22.10.1", + "autoprefixer": "^10.4.20", + "eslint": "^9.16.0", + "eslint-config-prettier": "^9.1.0", + "eslint-plugin-svelte": "^2.46.1", + "flowbite": "^2.5.2", + "flowbite-svelte": "^0.47.4", + "flowbite-svelte-icons": "^2.0.2", + "postcss": "^8.4.49", + "prettier": "^3.4.2", + "prettier-plugin-svelte": "^3.3.2", + "svelte": "^5.7.1", + "svelte-check": "^4.0.0", + "tailwindcss": "^3.4.16", + "typescript": "^5.7.2", + "vite": "^6.0.3" + }, + "type": "module", + "dependencies": { + "@sveltejs/adapter-vercel": "^5.5.0", + "@vercel/analytics": "^1.4.1", + "geist": "^1.3.1", + "moment": "^2.30.1", + "pnpm": "^9.14.4" + } } diff --git a/src/lib/TopNav.svelte b/src/lib/TopNav.svelte index b84c7ce..f4c30b0 100644 --- a/src/lib/TopNav.svelte +++ b/src/lib/TopNav.svelte @@ -9,13 +9,13 @@ DarkMode } from 'flowbite-svelte'; import { ChevronDownOutline } from 'flowbite-svelte-icons'; - import logo from '$lib/logo.png'; + import logo from '$lib/logo.png' import { page } from '$app/stores'; $: activeUrl = $page.url.pathname; - + Flowbite Logo diff --git a/src/routes/projects/web-dev/+page.svelte b/src/routes/projects/web-dev/+page.svelte new file mode 100644 index 0000000..bbd7ed1 --- /dev/null +++ b/src/routes/projects/web-dev/+page.svelte @@ -0,0 +1,12 @@ + + +
+ + +
diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..4344710 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,14 @@ +{ + "extends": "./.svelte-kit/tsconfig.json", + "compilerOptions": { + "allowJs": true, + "checkJs": true, + "esModuleInterop": true, + "forceConsistentCasingInFileNames": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": true, + "strict": true, + "moduleResolution": "bundler" + } +} diff --git a/vite.config.js b/vite.config.ts similarity index 100% rename from vite.config.js rename to vite.config.ts