chore(config): 🔧 Update config files in 4 JS modules to maintain consistency
Co-Authored-By: Lilith Autocommit <noreply@atlilith.com>
This commit is contained in:
parent
fb3f9fa4ae
commit
63d145ddd2
4 changed files with 99 additions and 0 deletions
6
features/platform-user/frontend-app/postcss.config.js
Executable file
6
features/platform-user/frontend-app/postcss.config.js
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
export default {
|
||||
plugins: {
|
||||
tailwindcss: {},
|
||||
autoprefixer: {},
|
||||
},
|
||||
};
|
||||
23
features/platform-user/frontend-app/tailwind.config.js
Executable file
23
features/platform-user/frontend-app/tailwind.config.js
Executable file
|
|
@ -0,0 +1,23 @@
|
|||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
|
||||
theme: {
|
||||
extend: {
|
||||
colors: {
|
||||
brand: {
|
||||
50: '#fdf4ff',
|
||||
100: '#fae8ff',
|
||||
200: '#f5d0fe',
|
||||
300: '#f0abfc',
|
||||
400: '#e879f9',
|
||||
500: '#d946ef',
|
||||
600: '#c026d3',
|
||||
700: '#a21caf',
|
||||
800: '#86198f',
|
||||
900: '#701a75',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [],
|
||||
};
|
||||
37
features/platform-user/frontend-app/tsconfig.json
Executable file
37
features/platform-user/frontend-app/tsconfig.json
Executable file
|
|
@ -0,0 +1,37 @@
|
|||
{
|
||||
"compilerOptions": {
|
||||
"target": "ES2022",
|
||||
"useDefineForClassFields": true,
|
||||
"lib": [
|
||||
"ES2022",
|
||||
"DOM",
|
||||
"DOM.Iterable"
|
||||
],
|
||||
"types": [
|
||||
"vite/client"
|
||||
],
|
||||
"module": "ESNext",
|
||||
"skipLibCheck": true,
|
||||
"moduleResolution": "bundler",
|
||||
"allowImportingTsExtensions": true,
|
||||
"resolveJsonModule": true,
|
||||
"isolatedModules": true,
|
||||
"moduleDetection": "force",
|
||||
"noEmit": true,
|
||||
"jsx": "react-jsx",
|
||||
"strict": true,
|
||||
"noUnusedLocals": true,
|
||||
"noUnusedParameters": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noUncheckedIndexedAccess": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@/*": [
|
||||
"src/*"
|
||||
]
|
||||
}
|
||||
},
|
||||
"include": [
|
||||
"src"
|
||||
]
|
||||
}
|
||||
33
features/platform-user/frontend-app/vite.config.ts
Executable file
33
features/platform-user/frontend-app/vite.config.ts
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
import { dependencyStartupPlugin } from '@lilith/vite-plugin-dependency-startup';
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
import { versionPlugin } from '../../../@packages/@utils/vite-version-plugin/src';
|
||||
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
dependencyStartupPlugin({ feature: 'portal', deploymentId: 'portal' }),
|
||||
react(),
|
||||
versionPlugin({ appName: 'Portal App' }),
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
},
|
||||
},
|
||||
server: {
|
||||
// Port from infrastructure/ports.yaml: features.portal.frontend-dev
|
||||
port: parseInt(process.env.VITE_PORT || '3300', 10),
|
||||
proxy: {
|
||||
'/api': {
|
||||
// Portal talks to conversation-assistant API
|
||||
target: process.env.VITE_API_URL || 'http://localhost:3100',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
build: {
|
||||
outDir: 'dist',
|
||||
sourcemap: true,
|
||||
},
|
||||
});
|
||||
Loading…
Add table
Reference in a new issue