mirror of
https://github.com/morbalint/kemkas.git
synced 2026-07-17 19:03:46 +00:00
refactor
This commit is contained in:
@@ -5,7 +5,7 @@ export default [
|
|||||||
ignores: ['dist/**', 'build/**', 'node_modules/**'],
|
ignores: ['dist/**', 'build/**', 'node_modules/**'],
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
files: ['src/**/*.{ts,tsx}', 'vite.config.ts', 'vitest.setup.ts'],
|
files: ['src/**/*.{ts,tsx}', 'vite.config.mts', 'vitest.setup.ts'],
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
parser: tsParser,
|
parser: tsParser,
|
||||||
ecmaVersion: 'latest',
|
ecmaVersion: 'latest',
|
||||||
|
|||||||
@@ -53,7 +53,7 @@
|
|||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"start": "vite",
|
"start": "vite",
|
||||||
"build": "vite build",
|
"build": "vite build",
|
||||||
"lint": "eslint \"src/**/*.{ts,tsx}\" vite.config.ts vitest.setup.ts",
|
"lint": "eslint \"src/**/*.{ts,tsx}\" vite.config.mts vitest.setup.ts",
|
||||||
"preview": "vite preview",
|
"preview": "vite preview",
|
||||||
"test": "vitest run",
|
"test": "vitest run",
|
||||||
"test:watch": "vitest"
|
"test:watch": "vitest"
|
||||||
|
|||||||
@@ -19,5 +19,5 @@ vi.mock('react-router-dom', async () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
test('renders App', () => {
|
test('renders App', () => {
|
||||||
render(<App faro={undefined}/>);
|
render(<App />);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,6 +24,6 @@
|
|||||||
},
|
},
|
||||||
"include": [
|
"include": [
|
||||||
"src",
|
"src",
|
||||||
"vite.config.ts"
|
"vite.config.mts"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -4,13 +4,13 @@ import react from '@vitejs/plugin-react';
|
|||||||
export default defineConfig(({ mode }) => {
|
export default defineConfig(({ mode }) => {
|
||||||
const env = loadEnv(mode, process.cwd(), '');
|
const env = loadEnv(mode, process.cwd(), '');
|
||||||
const port = Number(env.PORT || 5173);
|
const port = Number(env.PORT || 5173);
|
||||||
const https = env.HTTPS === 'true';
|
const httpsEnabled = env.HTTPS === 'true';
|
||||||
|
|
||||||
return {
|
return {
|
||||||
plugins: [react()],
|
plugins: [react()],
|
||||||
server: {
|
server: {
|
||||||
port,
|
port,
|
||||||
https,
|
...(httpsEnabled ? { https: {} } : {}),
|
||||||
strictPort: true,
|
strictPort: true,
|
||||||
allowedHosts: ['localhost', 'host.docker.internal', 'frontend'],
|
allowedHosts: ['localhost', 'host.docker.internal', 'frontend'],
|
||||||
},
|
},
|
||||||
Reference in New Issue
Block a user