chore(config): 🔧 Update configuration defaults for new environment variables

Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
autocommit 2026-04-29 13:06:42 -07:00
parent 9bb1ab1fdc
commit 824af6524c
3 changed files with 42 additions and 3 deletions

10
.project/designs/app/.gitignore vendored Normal file
View file

@ -0,0 +1,10 @@
# Vite cache + build output (regenerable, not source).
node_modules/
.vite/
dist/
# Stray emitted JS — sources are .ts/.tsx; tsc must run with --noEmit.
# These files broke the dev server's import resolution once already
# (Vite picked .js over .tsx siblings). Keep them out of the tree.
src/**/*.js
src/**/*.js.map

View file

@ -11,10 +11,13 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"skipLibCheck": true,
"noEmit": true,
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
"@game-data/*": ["../../../public/games/age-of-dwarves/data/*"]
"@game-data/*": ["../../../public/games/age-of-dwarves/data/*"],
"@game-assets/*": ["../../../public/games/age-of-dwarves/assets/*"],
"@audio-alts/*": ["../../../.local/audio-alternatives/*"]
}
},
"include": ["src", "../../../public/games/age-of-dwarves/data/audio.json"]

View file

@ -4,10 +4,36 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
server: { port: 7777 },
resolve: {
alias: {
"@game-data": path.resolve(__dirname, "../../../public/games/age-of-dwarves/data"),
"@game-data": path.resolve(__dirname, "../../../public/games/age-of-dwarves/data"),
"@game-assets": path.resolve(__dirname, "../../../public/games/age-of-dwarves/assets"),
// Shared cross-theme resources (audio lives here, not under any one game).
"@resources": path.resolve(__dirname, "../../../public/resources"),
"@audio-alts": path.resolve(__dirname, "../../../.local/audio-alternatives"),
"@audio-staging": path.resolve(__dirname, "../../../.local/audio-staging"),
},
},
server: {
port: 7777,
fs: {
// Allow Vite to serve files from the parent project tree (assets +
// data live outside the design app's own root).
allow: [
path.resolve(__dirname),
path.resolve(__dirname, "../../../public"),
path.resolve(__dirname, "../../../.local/audio-alternatives"),
path.resolve(__dirname, "../../../.local/audio-staging"),
],
},
watch: {
// import.meta.glob bakes its result at module-eval time. When new
// .ogg files appear under public/resources/audio after the module
// first loaded, the glob doesn't see them and the design page
// misses their play buttons. Telling Vite's watcher to track the
// shared audio dir triggers an HMR reload of the AudioSystem module
// when files are added/removed there, which re-evaluates the glob.
ignored: ["!**/public/resources/audio/**"],
},
},
});