Upgrade SvelteKit to 1.0.0 stable release (#108)

* Upgrade to Vite 4.0.0

* Update trailing slash config

* Update path alias configs

* Upgrade safelist config

We had this under purge, but that has been deprecated. The safelist is
in its own top-level config now:
https://tailwindcss.com/docs/content-configuration#safelisting-classes

* Upgrade to SvelteKit stable release
This commit is contained in:
Brian Ginsburg 2023-01-05 16:12:52 -08:00 committed by GitHub
parent 14b554d098
commit 33ceebadc3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 2570 additions and 1376 deletions

3923
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,8 +12,8 @@
"format": "prettier --write --plugin-search-dir=. ."
},
"devDependencies": {
"@sveltejs/adapter-static": "1.0.0-next.43",
"@sveltejs/kit": "1.0.0-next.489",
"@sveltejs/adapter-static": "^1.0.0",
"@sveltejs/kit": "^1.0.1",
"@tailwindcss/typography": "^0.5.2",
"@types/qrcode-svg": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^4.33.0",
@ -37,7 +37,7 @@
"tsconfig-paths": "^3.12.0",
"tslib": "^2.0.0",
"typescript": "^4.4.4",
"vite": "^3.0.0"
"vite": "^4.0.0"
},
"type": "module",
"ava": {

View File

@ -1,3 +1,4 @@
export const csr = true
export const ssr = false
export const prerender = true
export const prerender = true
export const trailingSlash = 'always'

View File

@ -9,8 +9,7 @@ const config = {
kit: {
adapter: adapter({
fallback: 'index.html'
}),
trailingSlash: 'always'
})
},
}

View File

@ -1,6 +1,7 @@
module.exports = {
mode: 'jit',
content: ['./src/**/*.{html,js,svelte,ts}'],
safelist: ['alert-success', 'alert-error', 'alert-info', 'alert-warning'],
plugins: [require('daisyui')],
darkMode: ['class', '[data-theme="dark"]'],
daisyui: {
@ -122,10 +123,5 @@ module.exports = {
max: '1000' // High enough to appear above the modal(999)
}
}
},
purge: {
options: {
safelist: ['alert-success', 'alert-error', 'alert-info', 'alert-warning']
}
}
}

View File

@ -23,10 +23,15 @@
"allowJs": true,
"checkJs": true,
"paths": {
"$components": ["src/components"],
"$components/*": ["src/components/*"],
"$lib":["src/lib"],
"$lib/*": ["src/lib/*"],
"$routes": ["src/routes"],
"$routes/*": ["src/routes/*"],
"$src": ["src"],
"$src/*": ["src/*"],
"$static": ["static"],
"$static/*": ["static/*"]
}
},