chore(dissolve-showcase): 🔧 Update Gitignore, TypeScript config, and Vite build tooling settings
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
94ff8d3ec4
commit
94d3b26776
4 changed files with 25 additions and 85 deletions
22
.env
Normal file
22
.env
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# @life platform environment variables
|
||||
# Copy to .env and fill in actual values
|
||||
|
||||
# Database
|
||||
DATABASE_HOST=localhost
|
||||
DATABASE_PORT=25471
|
||||
DATABASE_USER=lilith
|
||||
DATABASE_PASSWORD=
|
||||
DATABASE_NAME=life_manager
|
||||
|
||||
# Redis
|
||||
REDIS_HOST=localhost
|
||||
REDIS_PORT=26370
|
||||
|
||||
# API
|
||||
API_PORT=3700
|
||||
VITE_API_URL=http://localhost:3700
|
||||
|
||||
# Frontend
|
||||
VITE_APP_URL=http://localhost:5701
|
||||
|
||||
# Production overrides go in .env.production
|
||||
3
.gitignore
vendored
3
.gitignore
vendored
|
|
@ -1,2 +1,5 @@
|
|||
node_modules/
|
||||
pnpm-lock.yaml
|
||||
|
||||
# Auto-added by auto-commit-service
|
||||
.turbo/
|
||||
|
|
|
|||
|
|
@ -1,19 +0,0 @@
|
|||
{
|
||||
"extends": "../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"lib": ["ES2022", "DOM", "DOM.Iterable"],
|
||||
"module": "ESNext",
|
||||
"moduleResolution": "bundler",
|
||||
"jsx": "react-jsx",
|
||||
"outDir": "./dist",
|
||||
"baseUrl": "../..",
|
||||
"paths": {
|
||||
"@/*": ["apps/showcase/src/*"],
|
||||
"@features/*": ["features/*"]
|
||||
},
|
||||
"noEmit": true
|
||||
},
|
||||
"include": ["src"],
|
||||
"exclude": ["node_modules", "dist"]
|
||||
}
|
||||
|
|
@ -1,66 +0,0 @@
|
|||
import { defineConfig } from 'vite';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import fs from 'fs';
|
||||
import path from 'path';
|
||||
|
||||
// Several @lilith packages are published with broken dist:
|
||||
// - ui-feedback: dist exists but nested wrongly (dist/ui-feedback/src/ instead of dist/)
|
||||
// - ui-fab: dist has only tsbuildinfo, no JS output
|
||||
// - ui-forms: dist missing entirely
|
||||
// Resolve aliases point Vite to working entry points.
|
||||
// Local override for text-processing-utils (uses local build with SymSpell engine)
|
||||
// Falls back to npm-published version when local path doesn't exist (e.g., on prod server)
|
||||
const textUtilsLocalPath = '/var/home/lilith/Code/@packages/@ts/@text/text-utils/dist/index.js';
|
||||
const localPackageOverrides: Record<string, string> = {
|
||||
...(fs.existsSync(textUtilsLocalPath)
|
||||
? { '@lilith/text-processing-utils': path.resolve(textUtilsLocalPath) }
|
||||
: {}),
|
||||
'@lilith/spellchecker-wasm': path.resolve(
|
||||
__dirname,
|
||||
'node_modules/@lilith/spellchecker-wasm/dist/index.js',
|
||||
),
|
||||
};
|
||||
|
||||
const brokenPackageFixes: Record<string, string> = {
|
||||
'@lilith/ui-feedback': path.resolve(
|
||||
__dirname,
|
||||
'../../../node_modules/@lilith/ui-feedback/dist/ui-feedback/src/index.js',
|
||||
),
|
||||
'@lilith/ui-fab': path.resolve(
|
||||
__dirname,
|
||||
'../../../node_modules/@lilith/ui-fab/src/index.ts',
|
||||
),
|
||||
'@lilith/ui-forms': path.resolve(
|
||||
__dirname,
|
||||
'../../../node_modules/@lilith/ui-forms/src/index.ts',
|
||||
),
|
||||
};
|
||||
|
||||
export default defineConfig({
|
||||
envDir: path.resolve(__dirname, '../../..'),
|
||||
plugins: [react()],
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': path.resolve(__dirname, './src'),
|
||||
'@features': path.resolve(__dirname, '../../features'),
|
||||
...brokenPackageFixes,
|
||||
...localPackageOverrides,
|
||||
},
|
||||
dedupe: [
|
||||
'react',
|
||||
'react-dom',
|
||||
'react-router-dom',
|
||||
'styled-components',
|
||||
],
|
||||
},
|
||||
optimizeDeps: {
|
||||
exclude: [
|
||||
...Object.keys(brokenPackageFixes),
|
||||
'@lilith/text-processing-utils',
|
||||
'@lilith/spellchecker-wasm',
|
||||
],
|
||||
},
|
||||
server: {
|
||||
port: 5702,
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue