Skip to content

Commit d215aec

Browse files
committed
add vite remoev react-scripts
1 parent 4658baf commit d215aec

21 files changed

+7376
-16654
lines changed

src/frontend_react/.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Vite Environment Variables
2+
# All environment variables must be prefixed with REACT_APP_ to be accessible in the browser
3+
# Example:
4+
# REACT_APP_API_URL=http://localhost:5000/api
5+
# REACT_APP_ENVIRONMENT=development

src/frontend_react/.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
# production
1212
/build
13+
/dist
1314

1415
# misc
1516
.DS_Store
@@ -18,6 +19,10 @@
1819
.env.test.local
1920
.env.production.local
2021

22+
# Vite
23+
.vite/
24+
*.local
25+
2126
npm-debug.log*
2227
yarn-debug.log*
2328
yarn-error.log*

src/frontend_react/index.html

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1" />
7+
<meta name="theme-color" content="#000000" />
8+
<meta
9+
name="description"
10+
content="MACAE - Multi-Agent Custom Automation Engine"
11+
/>
12+
<link rel="apple-touch-icon" href="/logo192.png" />
13+
<link rel="manifest" href="/manifest.json" />
14+
<title>MACAE</title>
15+
</head>
16+
<body>
17+
<noscript>You need to enable JavaScript to run this app.</noscript>
18+
<div id="root"></div>
19+
<script type="module" src="/src/index.tsx"></script>
20+
</body>
21+
</html>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Migration Script for React Scripts to Vite
2+
# Run these commands in PowerShell from your frontend_react directory
3+
4+
# 1. Remove react-scripts
5+
npm uninstall react-scripts
6+
7+
# 2. Install Vite and related plugins
8+
npm install --save-dev vite @vitejs/plugin-react @types/node
9+
10+
# 3. Install additional Vite-specific dev dependencies
11+
npm install --save-dev vite-plugin-eslint
12+
13+
# 4. Update testing dependencies (optional)
14+
npm install --save-dev @vitest/ui vitest jsdom

0 commit comments

Comments
 (0)