Files
inbuxa-admin/vite.config.ts
T
jcoffey-dev 27c19de7e9
ci / build (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / notices (pull_request) Successful in 1m25s
ci / publish (pull_request) Skipped
ci / github (pull_request) Successful in 1m26s
Rewrite the config files; drop what nothing uses
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.
2026-10-18 17:39:58 -07:00

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/**'],
},
})