Update config/packages

This commit is contained in:
Chris Dill 2022-08-15 17:31:32 +01:00
parent 034345b29f
commit 7395f859a9
6 changed files with 628 additions and 588 deletions

1184
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -2,17 +2,18 @@
"name": "quartznet",
"version": "0.0.1",
"scripts": {
"dev": "svelte-kit dev",
"build": "svelte-kit build",
"preview": "svelte-kit preview"
"dev": "vite dev",
"build": "vite build",
"preview": "vite preview"
},
"devDependencies": {
"@sveltejs/adapter-static": "^1.0.0-next.13",
"@sveltejs/adapter-static": "^1.0.0-next.39",
"@sveltejs/kit": "next",
"svelte": "^3.44.0",
"svelte-preprocess": "^4.10.1",
"svelte": "^3.46.0",
"svelte-preprocess": "^4.10.6",
"tslib": "^2.3.1",
"typescript": "~4.6.2"
"typescript": "^4.6.4",
"vite": "^3.0.9"
},
"type": "module"
}

View File

@ -11,9 +11,9 @@
<!-- <link rel="manifest" href="manifest.json" crossorigin="use-credentials"> -->
<link rel="icon" type="image/png" href="/img/favicon.ico">
%svelte.head%
%sveltekit.head%
</head>
<body>
<div id="svelte">%svelte.body%</div>
<div id="svelte">%sveltekit.body%</div>
</body>
</html>

View File

@ -5,6 +5,9 @@ import preprocess from 'svelte-preprocess';
const config = {
preprocess: preprocess(),
kit: {
prerender: {
default: true
},
adapter: adapter({
pages: 'build'
})

View File

@ -1,5 +1,5 @@
{
// "extends": "./.svelte-kit/tsconfig.json",
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,

8
vite.config.js Normal file
View File

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