Upgrade kit to version 1.0.0-next.405

This commit is contained in:
Ryan Gossiaux
2023-06-14 13:26:53 -07:00
parent 782b3ee49c
commit 732dc118f5
9 changed files with 912 additions and 233 deletions

1109
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -17,7 +17,7 @@
"repository": "github:rgossiaux/svelte-headlessui", "repository": "github:rgossiaux/svelte-headlessui",
"version": "2.0.0", "version": "2.0.0",
"scripts": { "scripts": {
"dev": "svelte-kit dev", "dev": "vite dev",
"build": "svelte-kit build", "build": "svelte-kit build",
"package": "svelte-kit package && find package/ -type f -exec sed -i '' -e 's/process.env.NODE_ENV/\"production\"/' {} \\;", "package": "svelte-kit package && find package/ -type f -exec sed -i '' -e 's/process.env.NODE_ENV/\"production\"/' {} \\;",
"preview": "svelte-kit preview", "preview": "svelte-kit preview",
@@ -35,7 +35,7 @@
"@babel/preset-env": "^7.16.5", "@babel/preset-env": "^7.16.5",
"@rgossiaux/svelte-heroicons": "^0.1.2", "@rgossiaux/svelte-heroicons": "^0.1.2",
"@sveltejs/adapter-auto": "next", "@sveltejs/adapter-auto": "next",
"@sveltejs/kit": "^1.0.0-next.299", "@sveltejs/kit": "^1.0.0-next.405",
"@tailwindcss/forms": "^0.4.0", "@tailwindcss/forms": "^0.4.0",
"@tailwindcss/typography": "^0.5.0", "@tailwindcss/typography": "^0.5.0",
"@testing-library/jest-dom": "^5.16.1", "@testing-library/jest-dom": "^5.16.1",
@@ -67,10 +67,8 @@
"tailwindcss": "^3.0.0", "tailwindcss": "^3.0.0",
"ts-jest": "^27.1.2", "ts-jest": "^27.1.2",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.4.3" "typescript": "^4.4.3",
}, "vite": "^3.2.7"
"overrides": {
"@sveltejs/vite-plugin-svelte": "1.0.0-next.32"
}, },
"type": "module" "type": "module"
} }

View File

@@ -5,9 +5,9 @@
<meta name="description" content="" /> <meta name="description" content="" />
<link rel="icon" href="/favicon.svg" /> <link rel="icon" href="/favicon.svg" />
<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>
<div id="svelte">%svelte.body%</div> <div id="svelte">%sveltekit.body%</div>
</body> </body>
</html> </html>

View File

@@ -0,0 +1,2 @@
<slot />

View File

@@ -1,7 +1,3 @@
<script>
import "../../../../app.css";
</script>
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<slot /> <slot />
</div> </div>

View File

@@ -1,7 +1,3 @@
<script>
import "../../../../app.css";
</script>
<div class="flex flex-col items-center justify-center"> <div class="flex flex-col items-center justify-center">
<slot /> <slot />
</div> </div>

View File

@@ -2,6 +2,7 @@
"extends": "./.svelte-kit/tsconfig.json", "extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,
"allowSyntheticDefaultImports": true,
"paths": { "paths": {
"$lib":["src/lib"], "$lib":["src/lib"],
"$lib/*":["src/lib/*"], "$lib/*":["src/lib/*"],

9
vite.config.js Normal file
View File

@@ -0,0 +1,9 @@
import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()]
};
export default config;