Upgrade kit to version 1.0.0-next.405
This commit is contained in:
1111
package-lock.json
generated
1111
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10
package.json
10
package.json
@@ -17,7 +17,7 @@
|
||||
"repository": "github:rgossiaux/svelte-headlessui",
|
||||
"version": "2.0.0",
|
||||
"scripts": {
|
||||
"dev": "svelte-kit dev",
|
||||
"dev": "vite dev",
|
||||
"build": "svelte-kit build",
|
||||
"package": "svelte-kit package && find package/ -type f -exec sed -i '' -e 's/process.env.NODE_ENV/\"production\"/' {} \\;",
|
||||
"preview": "svelte-kit preview",
|
||||
@@ -35,7 +35,7 @@
|
||||
"@babel/preset-env": "^7.16.5",
|
||||
"@rgossiaux/svelte-heroicons": "^0.1.2",
|
||||
"@sveltejs/adapter-auto": "next",
|
||||
"@sveltejs/kit": "^1.0.0-next.299",
|
||||
"@sveltejs/kit": "^1.0.0-next.405",
|
||||
"@tailwindcss/forms": "^0.4.0",
|
||||
"@tailwindcss/typography": "^0.5.0",
|
||||
"@testing-library/jest-dom": "^5.16.1",
|
||||
@@ -67,10 +67,8 @@
|
||||
"tailwindcss": "^3.0.0",
|
||||
"ts-jest": "^27.1.2",
|
||||
"tslib": "^2.3.1",
|
||||
"typescript": "^4.4.3"
|
||||
},
|
||||
"overrides": {
|
||||
"@sveltejs/vite-plugin-svelte": "1.0.0-next.32"
|
||||
"typescript": "^4.4.3",
|
||||
"vite": "^3.2.7"
|
||||
},
|
||||
"type": "module"
|
||||
}
|
||||
|
||||
@@ -5,9 +5,9 @@
|
||||
<meta name="description" content="" />
|
||||
<link rel="icon" href="/favicon.svg" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
%svelte.head%
|
||||
%sveltekit.head%
|
||||
</head>
|
||||
<body>
|
||||
<div id="svelte">%svelte.body%</div>
|
||||
<div id="svelte">%sveltekit.body%</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
2
src/routes/__layout@root.svelte
Normal file
2
src/routes/__layout@root.svelte
Normal file
@@ -0,0 +1,2 @@
|
||||
<slot />
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<script>
|
||||
import "../../../../app.css";
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<slot />
|
||||
</div>
|
||||
@@ -1,7 +1,3 @@
|
||||
<script>
|
||||
import "../../../../app.css";
|
||||
</script>
|
||||
|
||||
<div class="flex flex-col items-center justify-center">
|
||||
<slot />
|
||||
</div>
|
||||
@@ -2,6 +2,7 @@
|
||||
"extends": "./.svelte-kit/tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"paths": {
|
||||
"$lib":["src/lib"],
|
||||
"$lib/*":["src/lib/*"],
|
||||
|
||||
9
vite.config.js
Normal file
9
vite.config.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { sveltekit } from '@sveltejs/kit/vite';
|
||||
|
||||
/** @type {import('vite').UserConfig} */
|
||||
const config = {
|
||||
plugins: [sveltekit()]
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
Reference in New Issue
Block a user