Phase 0: Bootstrap — структура monorepo, package.json, .env.example, README, .gitignore, .editorconfig

This commit is contained in:
Suslov-MD
2026-08-15 15:09:23 +00:00
commit ce37b1415c
14 changed files with 11377 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
VITE_API_URL=http://localhost:3000
+12
View File
@@ -0,0 +1,12 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>News Editor</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>
+4950
View File
File diff suppressed because it is too large Load Diff
+27
View File
@@ -0,0 +1,27 @@
{
"name": "news-editor-client",
"version": "1.0.0",
"private": true,
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview",
"lint": "eslint src/"
},
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-router-dom": "^7.2.0",
"react-markdown": "^9.0.3",
"remark-gfm": "^4.0.0",
"rehype-sanitize": "^6.0.0",
"socket.io-client": "^4.8.1"
},
"devDependencies": {
"@vitejs/plugin-react": "^4.3.4",
"eslint": "^9.17.0",
"sass": "^1.83.4",
"vite": "^6.3.5"
}
}
+14
View File
@@ -0,0 +1,14 @@
import { defineConfig } from 'vite';
import react from '@vitejs/plugin-react';
/**
* Vite configuration for the News Editor client.
*
* @returns {import("vite").UserConfig} Vite config object.
*/
export default defineConfig({
plugins: [react()],
server: {
port: 5173,
},
});