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",
"version": "0.0.1",
"scripts": {
"dev": "svelte-kit dev",
"build": "svelte-kit build",
"package": "svelte-kit package",
"preview": "svelte-kit preview",
"check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
"lint": "prettier --ignore-path .gitignore --check --plugin-search-dir=. . && eslint --ignore-path .gitignore .",
"format": "prettier --ignore-path .gitignore --write --plugin-search-dir=. ."
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./jsconfig.json --watch",
"test": "playwright test",
"test:unit": "vitest",
"lint": "prettier --plugin-search-dir . --check . && eslint .",
"format": "prettier --plugin-search-dir . --write ."
},
"devDependencies": {
"@sveltejs/adapter-auto": "^1.0.0-next.18",
"@sveltejs/adapter-node": "^1.0.0-next.67",
"@sveltejs/kit": "next",
"@tailwindcss/typography": "^0.5.9",
"@fontsource/fira-mono": "^4.5.10",
"@neoconfetti/svelte": "^1.0.0",
"@playwright/test": "^1.28.1",
"@typescript-eslint/eslint-plugin": "^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",
"mdsvex": "^0.10.6",
"postcss": "^8.4.5",
"prettier": "^2.4.1",
"prettier-plugin-svelte": "^2.4.0",
"svelte": "^3.44.0",
"svelte-check": "^2.2.6",
"svelte-preprocess": "^4.9.4",
"tslib": "^2.3.1",
"@sveltejs/adapter-vercel": "^3.0.0",
"@sveltejs/kit": "^1.5.0",
"@types/cookie": "^0.5.1",
"eslint": "^8.28.0",
"@tailwindcss/typography": "^0.5.9",
"tailwind-scrollbar": "^3.0.4",
"tailwindcss": "^3.0.17",
"tslib": "^2.3.1",
"typescript": "^4.4.3"
"eslint-config-prettier": "^8.5.0",
"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": {
"@fontsource/fira-mono": "^4.5.0",

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

@ -5,12 +5,12 @@
<meta name="description" content="" />
<link rel="icon" href="%svelte.assets%/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
%svelte.head%
%sveltekit.head%
</head>
<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"
>
<div>%svelte.body%</div>
<div>%sveltekit.body%</div>
<a rel="me" href="https://mastodon.social/@midblep" class="hidden">Mastodon</a>
<script>
if (!('container' in document.documentElement.style)) {

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

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

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

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