mirror of
https://github.com/Dictionarry-Hub/profilarr.git
synced 2026-01-22 19:01:02 +01:00
- Updated package.json to include Kysely and Deno Vite plugin dependencies. - Introduced new types for sorting in table component. - Refactored PCDCache to utilize Kysely for type-safe database queries. - Created new query files for quality profiles, including general information, languages, and list queries. - Removed outdated qualityProfiles.ts file and replaced it with modular query structure. - Updated routes to use new query functions for loading quality profile data. - Enhanced Vite configuration to include Deno plugin and improved watch settings.
22 lines
572 B
TypeScript
22 lines
572 B
TypeScript
import tailwindcss from '@tailwindcss/vite';
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
|
import { defineConfig } from 'vite';
|
|
import { readFileSync } from 'node:fs';
|
|
import deno from '@deno/vite-plugin';
|
|
|
|
const packageJson = JSON.parse(readFileSync('./package.json', 'utf-8'));
|
|
|
|
export default defineConfig({
|
|
plugins: [deno(), tailwindcss(), sveltekit()],
|
|
server: {
|
|
port: 6969,
|
|
watch: {
|
|
// Ignore temporary files created by editors
|
|
ignored: ['**/*.tmp.*', '**/*~', '**/.#*']
|
|
}
|
|
},
|
|
define: {
|
|
__APP_VERSION__: JSON.stringify(packageJson.version)
|
|
}
|
|
});
|