Skip to content

Commit

Permalink
Add React and a real build step
Browse files Browse the repository at this point in the history
Everything is still fine
  • Loading branch information
dosolkowski-work committed Oct 24, 2024
1 parent 625fd79 commit 2f40fcf
Show file tree
Hide file tree
Showing 6 changed files with 588 additions and 16 deletions.
13 changes: 13 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Vite + React + TS</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>
13 changes: 12 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,17 @@
"name": "David Osolkowski",
"url": "https://github.com/dosolkowski-work/"
},
"browser": true,
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@types/node": "^22.7.9",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@vitejs/plugin-react-swc": "^3.7.1",
"jsdom": "^25.0.1",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"vite-tsconfig-paths": "^5.0.1",
Expand All @@ -24,8 +34,9 @@
"url": "https://github.com/dosolkowski-work/vitest-extend-types-issue"
},
"scripts": {
"build": "tsc -b",
"build": "tsc -b && vite build",
"preinstall": "npx only-allow pnpm",
"start": "vite",
"test": "vitest"
},
"type": "module"
Expand Down
Loading

0 comments on commit 2f40fcf

Please sign in to comment.