Skip to content

Commit 0b34e73

Browse files
committed
refactor: ♻️ upgrade to tw v4 and daisyui v5 + new svelte template
1 parent 0305dfa commit 0b34e73

21 files changed

+2113
-1793
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ node_modules
44
# Output
55
.output
66
.vercel
7+
.netlify
8+
.wrangler
79
/.svelte-kit
810
/build
911

.prettierrc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
{
22
"useTabs": true,
3-
"tabWidth": 2,
43
"singleQuote": true,
54
"trailingComma": "all",
65
"proseWrap": "always",
@@ -17,4 +16,4 @@
1716
}
1817
}
1918
]
20-
}
19+
}

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2024 Svelte Society
3+
Copyright (c) 2025 Svelte Society
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

eslint.config.js

+20-12
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,41 @@
1-
import prettier from 'eslint-config-prettier';
1+
import { includeIgnoreFile } from '@eslint/compat';
22
import js from '@eslint/js';
3+
import prettier from 'eslint-config-prettier';
34
import svelte from 'eslint-plugin-svelte';
45
import globals from 'globals';
6+
import { fileURLToPath } from 'node:url';
57
import ts from 'typescript-eslint';
8+
import svelteConfig from './svelte.config.js';
9+
const gitignorePath = fileURLToPath(
10+
new URL('./.gitignore', import.meta.url),
11+
);
612

713
export default ts.config(
14+
includeIgnoreFile(gitignorePath),
815
js.configs.recommended,
916
...ts.configs.recommended,
10-
...svelte.configs['flat/recommended'],
17+
...svelte.configs.recommended,
1118
prettier,
1219
...svelte.configs['flat/prettier'],
1320
{
1421
languageOptions: {
1522
globals: {
1623
...globals.browser,
17-
...globals.node
18-
}
19-
}
24+
...globals.node,
25+
},
26+
},
2027
},
2128
{
22-
files: ['**/*.svelte'],
29+
files: ['**/*.svelte', '**/*.svelte.ts', '**/*.svelte.js'],
30+
ignores: ['eslint.config.js', 'svelte.config.js'],
2331

2432
languageOptions: {
2533
parserOptions: {
26-
parser: ts.parser
27-
}
28-
}
34+
projectService: true,
35+
extraFileExtensions: ['.svelte'],
36+
parser: ts.parser,
37+
svelteConfig,
38+
},
39+
},
2940
},
30-
{
31-
ignores: ['build/', '.svelte-kit/', 'dist/']
32-
}
3341
);

package.json

+29-18
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
{
22
"name": "svelte.london",
3+
"private": true,
34
"version": "0.0.1",
45
"type": "module",
56
"scripts": {
67
"dev": "vite dev",
78
"build": "vite build",
89
"preview": "vite preview",
10+
"prepare": "svelte-kit sync || echo ''",
911
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1012
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
1113
"format": "prettier --write .",
@@ -15,32 +17,41 @@
1517
"test:e2e": "playwright test"
1618
},
1719
"devDependencies": {
20+
"@eslint/compat": "^1.2.5",
21+
"@eslint/js": "^9.18.0",
1822
"@playwright/test": "^1.49.1",
19-
"@sveltejs/adapter-cloudflare": "^5.0.0",
20-
"@sveltejs/kit": "^2.15.2",
21-
"@sveltejs/vite-plugin-svelte": "^5.0.3",
22-
"@tailwindcss/typography": "^0.5.16",
23-
"@types/eslint": "^9.6.1",
24-
"autoprefixer": "^10.4.20",
25-
"daisyui": "^4.12.23",
23+
"@sveltejs/adapter-cloudflare": "^5.0.1",
24+
"@sveltejs/kit": "^2.16.0",
25+
"@sveltejs/vite-plugin-svelte": "^5.0.0",
26+
"@tailwindcss/typography": "^0.5.15",
27+
"@tailwindcss/vite": "^4.0.0",
28+
"@testing-library/jest-dom": "^6.6.3",
29+
"@testing-library/svelte": "^5.2.4",
30+
"daisyui": "5.0.0-beta.9",
2631
"eslint": "^9.18.0",
2732
"eslint-config-prettier": "^10.0.1",
28-
"eslint-plugin-svelte": "^2.46.1",
29-
"globals": "^15.14.0",
30-
"marked": "^15.0.6",
33+
"eslint-plugin-svelte": "^3.0.0",
34+
"globals": "^16.0.0",
35+
"jsdom": "^26.0.0",
36+
"marked": "^15.0.7",
3137
"mdsvex": "^0.12.3",
3238
"prettier": "^3.4.2",
3339
"prettier-plugin-svelte": "^3.3.3",
34-
"prettier-plugin-tailwindcss": "^0.6.9",
40+
"prettier-plugin-tailwindcss": "^0.6.11",
3541
"rehype-autolink-headings": "^7.1.0",
3642
"rehype-slug": "^6.0.0",
3743
"svead": "^0.0.13",
38-
"svelte": "^5.17.4",
39-
"svelte-check": "^4.1.4",
40-
"tailwindcss": "^3.4.17",
41-
"typescript": "^5.7.3",
44+
"svelte": "^5.0.0",
45+
"svelte-check": "^4.0.0",
46+
"tailwindcss": "^4.0.0",
47+
"typescript": "^5.0.0",
4248
"typescript-eslint": "^8.20.0",
43-
"vite": "^6.0.7",
44-
"vitest": "^2.1.8"
49+
"vite": "^6.0.0",
50+
"vitest": "^3.0.0"
51+
},
52+
"pnpm": {
53+
"onlyBuiltDependencies": [
54+
"esbuild"
55+
]
4556
}
46-
}
57+
}

playwright.config.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import { defineConfig } from '@playwright/test';
33
export default defineConfig({
44
webServer: {
55
command: 'npm run build && npm run preview',
6-
port: 4173
6+
port: 4173,
77
},
88

9-
testDir: 'e2e'
9+
testDir: 'e2e',
1010
});

0 commit comments

Comments
 (0)