Fix SvelteKit
continuous-integration/drone/push Build is passing Details

This commit is contained in:
DutchEllie 2022-07-11 09:03:35 +02:00
parent 7fbfbbbf35
commit 2cbc24f293
Signed by: DutchEllie
SSH Key Fingerprint: SHA256:dKq6ZSgN5E3Viqrw/+xAdf2VdR6hdRGNyrYqXXwfjTY
4 changed files with 51 additions and 28 deletions

40
package-lock.json generated
View File

@ -14,7 +14,7 @@
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-auto": "next", "@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-node": "^1.0.0-next.78", "@sveltejs/adapter-node": "^1.0.0-next.78",
"@sveltejs/kit": "next", "@sveltejs/kit": "^1.0.0-next.367",
"@types/serviceworker": "^0.0.48", "@types/serviceworker": "^0.0.48",
"@typescript-eslint/eslint-plugin": "^5.27.0", "@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0", "@typescript-eslint/parser": "^5.27.0",
@ -30,7 +30,8 @@
"svelte-preprocess": "^4.10.7", "svelte-preprocess": "^4.10.7",
"tailwindcss": "^3.1.4", "tailwindcss": "^3.1.4",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.7.4" "typescript": "^4.7.4",
"vite": "^2.9.14"
} }
}, },
"node_modules/@emmetio/abbreviation": { "node_modules/@emmetio/abbreviation": {
@ -240,24 +241,24 @@
} }
}, },
"node_modules/@sveltejs/kit": { "node_modules/@sveltejs/kit": {
"version": "1.0.0-next.357", "version": "1.0.0-next.367",
"resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.357.tgz", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.367.tgz",
"integrity": "sha512-nCAehVybIEpQNnPu61V/EFVdfDb1nBSiQUfW9EcSSDEUbyAMCVBOKZZuzQ0qQDp3xniqRkyDzpBA4wN+ADxHBw==", "integrity": "sha512-glilWol6iJEf8esQpH0HOzdI4n/xgZtoLa9U9sbg+BZelQXFRRglaGyw+ahjEreBH5MH3/bpIYAPPObQN8Pgbg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.48", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.48",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"sade": "^1.8.1", "sade": "^1.8.1"
"vite": "^2.9.10"
}, },
"bin": { "bin": {
"svelte-kit": "svelte-kit.js" "svelte-kit": "svelte-kit.js"
}, },
"engines": { "engines": {
"node": ">=16.7" "node": ">=16.9"
}, },
"peerDependencies": { "peerDependencies": {
"svelte": "^3.44.0" "svelte": "^3.44.0",
"vite": "^2.9.10"
} }
}, },
"node_modules/@sveltejs/vite-plugin-svelte": { "node_modules/@sveltejs/vite-plugin-svelte": {
@ -3553,9 +3554,9 @@
"dev": true "dev": true
}, },
"node_modules/vite": { "node_modules/vite": {
"version": "2.9.13", "version": "2.9.14",
"resolved": "https://registry.npmjs.org/vite/-/vite-2.9.13.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.14.tgz",
"integrity": "sha512-AsOBAaT0AD7Mhe8DuK+/kE4aWYFMx/i0ZNi98hJclxb4e0OhQcZYUrvLjIaQ8e59Ui7txcvKMiJC1yftqpQoDw==", "integrity": "sha512-P/UCjSpSMcE54r4mPak55hWAZPlyfS369svib/gpmz8/01L822lMPOJ/RYW6tLCe1RPvMvOsJ17erf55bKp4Hw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"esbuild": "^0.14.27", "esbuild": "^0.14.27",
@ -3976,15 +3977,14 @@
} }
}, },
"@sveltejs/kit": { "@sveltejs/kit": {
"version": "1.0.0-next.357", "version": "1.0.0-next.367",
"resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.357.tgz", "resolved": "https://registry.npmjs.org/@sveltejs/kit/-/kit-1.0.0-next.367.tgz",
"integrity": "sha512-nCAehVybIEpQNnPu61V/EFVdfDb1nBSiQUfW9EcSSDEUbyAMCVBOKZZuzQ0qQDp3xniqRkyDzpBA4wN+ADxHBw==", "integrity": "sha512-glilWol6iJEf8esQpH0HOzdI4n/xgZtoLa9U9sbg+BZelQXFRRglaGyw+ahjEreBH5MH3/bpIYAPPObQN8Pgbg==",
"dev": true, "dev": true,
"requires": { "requires": {
"@sveltejs/vite-plugin-svelte": "^1.0.0-next.48", "@sveltejs/vite-plugin-svelte": "^1.0.0-next.48",
"chokidar": "^3.5.3", "chokidar": "^3.5.3",
"sade": "^1.8.1", "sade": "^1.8.1"
"vite": "^2.9.10"
} }
}, },
"@sveltejs/vite-plugin-svelte": { "@sveltejs/vite-plugin-svelte": {
@ -6200,9 +6200,9 @@
"dev": true "dev": true
}, },
"vite": { "vite": {
"version": "2.9.13", "version": "2.9.14",
"resolved": "https://registry.npmjs.org/vite/-/vite-2.9.13.tgz", "resolved": "https://registry.npmjs.org/vite/-/vite-2.9.14.tgz",
"integrity": "sha512-AsOBAaT0AD7Mhe8DuK+/kE4aWYFMx/i0ZNi98hJclxb4e0OhQcZYUrvLjIaQ8e59Ui7txcvKMiJC1yftqpQoDw==", "integrity": "sha512-P/UCjSpSMcE54r4mPak55hWAZPlyfS369svib/gpmz8/01L822lMPOJ/RYW6tLCe1RPvMvOsJ17erf55bKp4Hw==",
"dev": true, "dev": true,
"requires": { "requires": {
"esbuild": "^0.14.27", "esbuild": "^0.14.27",

View File

@ -2,10 +2,10 @@
"name": "svelte-testing", "name": "svelte-testing",
"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", "package": "svelte-kit package",
"preview": "svelte-kit preview", "preview": "vite preview",
"prepare": "svelte-kit sync", "prepare": "svelte-kit sync",
"check": "svelte-check --tsconfig ./tsconfig.json", "check": "svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-check --tsconfig ./tsconfig.json --watch", "check:watch": "svelte-check --tsconfig ./tsconfig.json --watch",
@ -15,7 +15,7 @@
"devDependencies": { "devDependencies": {
"@sveltejs/adapter-auto": "next", "@sveltejs/adapter-auto": "next",
"@sveltejs/adapter-node": "^1.0.0-next.78", "@sveltejs/adapter-node": "^1.0.0-next.78",
"@sveltejs/kit": "next", "@sveltejs/kit": "^1.0.0-next.367",
"@types/serviceworker": "^0.0.48", "@types/serviceworker": "^0.0.48",
"@typescript-eslint/eslint-plugin": "^5.27.0", "@typescript-eslint/eslint-plugin": "^5.27.0",
"@typescript-eslint/parser": "^5.27.0", "@typescript-eslint/parser": "^5.27.0",
@ -31,7 +31,8 @@
"svelte-preprocess": "^4.10.7", "svelte-preprocess": "^4.10.7",
"tailwindcss": "^3.1.4", "tailwindcss": "^3.1.4",
"tslib": "^2.3.1", "tslib": "^2.3.1",
"typescript": "^4.7.4" "typescript": "^4.7.4",
"vite": "^2.9.14"
}, },
"type": "module", "type": "module",
"dependencies": { "dependencies": {

View File

@ -1,16 +1,30 @@
//import adapter from '@sveltejs/adapter-node';
//import sveltePreprocess from 'svelte-preprocess';
//
///** @type {import('@sveltejs/kit').Config} */
//const config = {
// // Consult https://github.com/sveltejs/svelte-preprocess
// // for more information about preprocessors
// preprocess: [
// sveltePreprocess({postcss: true})
// ],
// kit: {
// adapter: adapter(),
// },
//};
//
//export default config;
import adapter from '@sveltejs/adapter-node'; import adapter from '@sveltejs/adapter-node';
import sveltePreprocess from 'svelte-preprocess'; import sveltePreprocess from 'svelte-preprocess';
/** @type {import('@sveltejs/kit').Config} */ /** @type {import('@sveltejs/kit').Config} */
const config = { const config = {
// Consult https://github.com/sveltejs/svelte-preprocess
// for more information about preprocessors
preprocess: [ preprocess: [
sveltePreprocess({postcss: true}) sveltePreprocess({postcss: true})
], ],
kit: { kit: {
adapter: adapter(), adapter: adapter(),
}, }
}; };
export default config; export default config;

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;