Update to newer sveltekit version

main
Midnight 1 year ago
parent 5f242795be
commit d0b29d2630

6909
package-lock.json generated

File diff suppressed because it is too large Load Diff

@ -2,37 +2,43 @@
"name": "bartindustries-svelte", "name": "bartindustries-svelte",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"dev": "svelte-kit dev", "dev": "vite dev",
"build": "svelte-kit build", "build": "vite build",
"package": "svelte-kit package", "preview": "vite preview",
"preview": "svelte-kit preview", "check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check": "svelte-check --tsconfig ./tsconfig.json", "check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "test": "playwright test",
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .", "test:unit": "vitest",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ." "lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
}, },
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-auto": "^1.0.0-next.18", "@fontsource/fira-mono": "^4.5.10",
"@sveltejs/adapter-node": "^1.0.0-next.67", "@neoconfetti/svelte": "^1.0.0",
"@sveltejs/kit": "next", "@playwright/test": "^1.28.1",
"@tailwindcss/typography": "^0.5.9",
"@typescript-eslint/eslint-plugin": "^5.10.1", "@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1", "@typescript-eslint/parser": "^5.10.1",
"autoprefixer": "^10.4.2",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-svelte3": "^3.2.1", "eslint-plugin-svelte3": "^3.2.1",
"mdsvex": "^0.10.6", "tslib": "^2.3.1",
"postcss": "^8.4.5", "@sveltejs/adapter-vercel": "^3.0.0",
"prettier": "^2.4.1", "@sveltejs/kit": "^1.5.0",
"prettier-plugin-svelte": "^2.4.0", "@types/cookie": "^0.5.1",
"svelte": "^3.44.0", "eslint": "^8.28.0",
"svelte-check": "^2.2.6", "@tailwindcss/typography": "^0.5.9",
"svelte-preprocess": "^4.9.4",
"tailwind-scrollbar": "^3.0.4", "tailwind-scrollbar": "^3.0.4",
"tailwindcss": "^3.0.17", "tailwindcss": "^3.0.17",
"tslib": "^2.3.1", "eslint-config-prettier": "^8.5.0",
"typescript": "^4.4.3" "eslint-plugin-svelte": "^2.26.0",
"prettier": "^2.8.0",
"prettier-plugin-svelte": "^2.8.1",
"svelte": "^3.54.0",
"svelte-check": "^3.0.1",
"typescript": "^5.0.0",
"vite": "^4.3.0",
"vitest": "^0.25.3",
"web-vitals": "^3.3.1",
"autoprefixer": "^10.4.2",
"postcss": "^8.4.5"
}, },
"dependencies": { "dependencies": {
"@fontsource/fira-mono": "^4.5.0", "@fontsource/fira-mono": "^4.5.0",

@ -1,4 +1,4 @@
module.exports = { export default {
plugins: { plugins: {
tailwindcss: {}, tailwindcss: {},
autoprefixer: {}, autoprefixer: {},

@ -5,12 +5,12 @@
<meta name="description" content="" /> <meta name="description" content="" />
<link rel="icon" href="%svelte.assets%/favicon.png" /> <link rel="icon" href="%svelte.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head% %sveltekit.head%
</head> </head>
<body <body
class="scrollbar scrollbar-thumb-white dark:scrollbar-thumb-black scrollbar-w-3 scrollbar-track-gray-300 dark:scrollbar-track-gray-700 scrollbar-thumb-rounded-full" class="scrollbar scrollbar-thumb-white dark:scrollbar-thumb-black scrollbar-w-3 scrollbar-track-gray-300 dark:scrollbar-track-gray-700 scrollbar-thumb-rounded-full"
> >
<div>%svelte.body%</div> <div>%sveltekit.body%</div>
<a rel="me" href="https://mastodon.social/@midblep" class="hidden">Mastodon</a> <a rel="me" href="https://mastodon.social/@midblep" class="hidden">Mastodon</a>
<script> <script>
if (!('container' in document.documentElement.style)) { if (!('container' in document.documentElement.style)) {

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import { browser } from "$app/env"; import { browser } from "$app/environment";
import Preview from "$lib/blog/Preview.svelte"; import Preview from "$lib/blog/Preview.svelte";
import { onMount } from "svelte"; import { onMount } from "svelte";

@ -1,5 +1,5 @@
<script lang="ts"> <script lang="ts">
import { browser } from "$app/env"; import { browser } from "$app/environment";
import { onMount } from "svelte"; import { onMount } from "svelte";
onMount(() => { onMount(() => {

@ -13,6 +13,6 @@
</script> </script>
<div class="py-20 container flex flex-col gap-10"> <div class="py-20 container flex flex-col gap-10">
<h2 class="text-4xl font-bold text-center">Error {title}</h2> <h2 class="text-4xl font-bold text-center">Something went wrong here...</h2>
<img src="/banner5.jpeg" class="w-1/3 mx-auto rounded-2xl" alt="Oops! Hotdogs!" /> <img src="/homepage/sona/hotdog.jpeg" class="w-1/3 mx-auto rounded-2xl" alt="Oops! Hotdogs!" />
</div> </div>

@ -1,18 +1,11 @@
import adapter from '@sveltejs/adapter-auto'; import adapter from '@sveltejs/adapter-vercel';
import preprocess from 'svelte-preprocess'; import { vitePreprocess } from '@sveltejs/kit/vite';
import { mdsvex } from 'mdsvex';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
extensions: ['.svelte', '.md'], extensions: ['.svelte', '.md'],
preprocess: [ preprocess: [vitePreprocess()],
preprocess(),
mdsvex({
extensions: ['.md']
})
],
kit: { kit: {
adapter: adapter() adapter: adapter()

@ -0,0 +1,9 @@
import { sveltekit } from '@sveltejs/kit/vite';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [sveltekit()],
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
});
Loading…
Cancel
Save