web: приложение React + Vite с Tailwind
Каркас web-приложения: Vite, Tailwind, ESLint, раздача статики через Caddy, страница со статусом и версией проекта.
This commit is contained in:
1 parent
efba11d83f
commit
94e5e09218
21 files changed
+1292
No files matched your search
@@ -0,0 +1,48 @@
|
||||
/// <reference types='vitest' />
|
||||
import react from '@vitejs/plugin-react';
|
||||
import { defineConfig } from 'vite';
|
||||
|
||||
export default defineConfig(() => ({
|
||||
root: import.meta.dirname,
|
||||
cacheDir: '../../node_modules/.vite/apps/web',
|
||||
server: {
|
||||
port: 5173,
|
||||
host: 'localhost',
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:5000',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
preview: {
|
||||
port: 5173,
|
||||
host: 'localhost',
|
||||
},
|
||||
plugins: [react()],
|
||||
envPrefix: ['VITE_', 'APP_'],
|
||||
// Uncomment this if you are using workers.
|
||||
// worker: {
|
||||
// plugins: [],
|
||||
// },
|
||||
build: {
|
||||
outDir: './dist',
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: true,
|
||||
commonjsOptions: {
|
||||
transformMixedEsModules: true,
|
||||
},
|
||||
},
|
||||
test: {
|
||||
name: '@geo-platform/web',
|
||||
watch: false,
|
||||
globals: true,
|
||||
environment: 'jsdom',
|
||||
include: ['{src,tests}/**/*.{test,spec}.{js,mjs,cjs,ts,mts,cts,jsx,tsx}'],
|
||||
reporters: ['default'],
|
||||
coverage: {
|
||||
reportsDirectory: './test-output/vitest/coverage',
|
||||
provider: 'v8' as const,
|
||||
},
|
||||
},
|
||||
}));
|
||||
Reference in new issue
Block a user