- Migrate from legacy .eslintrc.json to modern flat config system - Remove conflicting ESLint configuration files - Fix auto-generation of eslint.config.mjs by Nuxt - Update ESLint rules to use single quotes and proper formatting - Add comprehensive theme switching system with 24 palettes - Implement proper daisyUI theme integration - Add theme store with persistence and dark/light mode support - Create ThemeSwitcher component with enhanced UI - Fix package.json scripts to work with new ESLint flat config - Update VS Code settings for proper ESLint integration - Add changelogen scripts for proper changelog management BREAKING CHANGE: ESLint configuration migrated to flat config system
34 lines
848 B
TypeScript
34 lines
848 B
TypeScript
import { cp, mkdir } from 'node:fs/promises'
|
|
import { fileURLToPath } from 'node:url'
|
|
import { type Plugin, defineConfig } from 'vite'
|
|
|
|
const copyNuxtOutput: Plugin = {
|
|
name: 'copy-nuxt-output',
|
|
async closeBundle() {
|
|
const outputDir = fileURLToPath(new URL('../.output/public', import.meta.url))
|
|
const targetDir = fileURLToPath(new URL('../.vite/renderer', import.meta.url))
|
|
|
|
await mkdir(targetDir, { recursive: true })
|
|
await cp(outputDir, targetDir, { recursive: true, force: true })
|
|
},
|
|
}
|
|
|
|
export default defineConfig({
|
|
publicDir: false,
|
|
plugins: [copyNuxtOutput],
|
|
build: {
|
|
emptyOutDir: false,
|
|
lib: {
|
|
entry: 'electron/main.ts',
|
|
formats: ['cjs'],
|
|
},
|
|
rollupOptions: {
|
|
output: {
|
|
entryFileNames: '[name].cjs',
|
|
},
|
|
external: [
|
|
'electron',
|
|
],
|
|
},
|
|
},
|
|
})
|