The TypeScript, ESLint and Vite configs, .gitignore and .env.development are rewritten with our own notes, with no change to what they do. .gitignore now lets .gitea/ through, so a new workflow file is tracked without git add -f. Gone: upstream's CHANGELOG.md (our releases carry their own notes), the zip build.sh, the Vite template's unused public/icons.svg, the GitLab CI file left from before Gitea, and .github-upstream/, upstream's old workflow kept as a merge reference.
29 lines
1.0 KiB
TypeScript
29 lines
1.0 KiB
TypeScript
// SPDX-FileCopyrightText: 2026 Coffey Labs LLC
|
|
// SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
// defineConfig from vitest/config, not vite, so the `test` section is typed.
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
import react from '@vitejs/plugin-react'
|
|
import path from 'path'
|
|
import { configDefaults, defineConfig } from 'vitest/config'
|
|
|
|
import inbuxa from './inbuxa-version.json' with { type: 'json' }
|
|
import { version } from './package.json' with { type: 'json' }
|
|
import { sievePlayground } from './sieve-playground.ts'
|
|
|
|
export default defineConfig({
|
|
// Relative, so one build works at any mount point (/admin, /account).
|
|
base: './',
|
|
define: {
|
|
// The release's dated version; package.json still carries upstream's.
|
|
__APP_VERSION__: JSON.stringify(`${inbuxa.version} (base ${version})`),
|
|
},
|
|
plugins: [react(), tailwindcss(), sievePlayground()],
|
|
resolve: { alias: { '@': path.resolve(import.meta.dirname, './src') } },
|
|
test: {
|
|
environment: 'happy-dom',
|
|
globals: false,
|
|
exclude: [...configDefaults.exclude, '**/.ignore/**'],
|
|
},
|
|
})
|