Skip to content

Commit 271b9c2

Browse files
jwilbertrvachov
authored andcommitted
Manual cherry-pick of #1014
Signed-off-by: Jared Wilber <jwilber@nvidia.com>
1 parent 541b57e commit 271b9c2

File tree

177 files changed

+25804
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+25804
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules/
2+
dist/
3+
.env
4+
.env.local
5+
.DS_Store
6+
*.log
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# Evo 2: Under the Hood
2+
3+
## Getting Started
4+
5+
### Development
6+
7+
1. Clone the repository:
8+
9+
```bash
10+
git clone https://github.com/yourusername/evo2-under-the-hood.git
11+
cd evo2-under-the-hood
12+
```
13+
14+
2. Install dependencies:
15+
16+
```bash
17+
npm install
18+
```
19+
20+
3. Start the development server:
21+
22+
```bash
23+
npm run dev
24+
```
25+
26+
4. Open your browser and navigate to `http://localhost:5173`
27+
28+
(Optionally): To build for production:
29+
30+
1. Create the static build:
31+
32+
```bash
33+
npm run build
34+
```
35+
36+
Assets will be stored in `/dist`
37+
38+
2. To preview the served assets:
39+
40+
```bash
41+
npm run start
42+
```
43+
44+
3. Open your browser and navigate to `http://localhost:8080`
45+
46+
### Available Scripts
47+
48+
- `npm run dev` - Start development server with hot reload
49+
- `npm run build` - Build for production
50+
- `npm run preview` - Preview production build locally
51+
- `npm run lint` - Run ESLint for code quality checks
52+
53+
# React + Vite
54+
55+
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
56+
57+
Currently, two official plugins are available:
58+
59+
- [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) for Fast Refresh
60+
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
61+
62+
## Expanding the ESLint configuration
63+
64+
If you are developing a production application, we recommend using TypeScript with type-aware lint rules enabled. Check out the [TS template](https://github.com/vitejs/vite/tree/main/packages/create-vite/template-react-ts) for information on how to integrate TypeScript and [`typescript-eslint`](https://typescript-eslint.io) in your project.
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import { defineConfig, globalIgnores } from 'eslint/config'
6+
7+
export default defineConfig([
8+
globalIgnores(['dist']),
9+
{
10+
files: ['**/*.{js,jsx}'],
11+
extends: [
12+
js.configs.recommended,
13+
reactHooks.configs['recommended-latest'],
14+
reactRefresh.configs.vite,
15+
],
16+
languageOptions: {
17+
ecmaVersion: 2020,
18+
globals: globals.browser,
19+
parserOptions: {
20+
ecmaVersion: 'latest',
21+
ecmaFeatures: { jsx: true },
22+
sourceType: 'module',
23+
},
24+
},
25+
rules: {
26+
'no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
27+
},
28+
},
29+
])
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!doctype html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" type="image/svg+xml" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
7+
<title>The Illustrated Evo 2</title>
8+
9+
<!-- External CSS files -->
10+
<link rel="stylesheet" href="/assets/styles/normalize.css" />
11+
<link rel="stylesheet" href="/assets/styles/font.css" />
12+
<link rel="stylesheet" href="/assets/styles/katex.css" />
13+
<link rel="stylesheet" href="/assets/styles/global.css" />
14+
</head>
15+
<body>
16+
<div id="root"></div>
17+
<script type="module" src="/src/main.jsx"></script>
18+
</body>
19+
</html>

0 commit comments

Comments
 (0)