Skip to content

Commit

Permalink
update typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
LilWikipedia committed Dec 9, 2024
1 parent 4cd82d9 commit 1848cea
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 39 deletions.
20 changes: 10 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>RF Meter</title>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<div id="root"></div>
<script type="module" src="main.js"></script>
</body>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>rf-meter</title>
</head>

<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
29 changes: 13 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "vite_react_shadcn_ts",
"homepage": "https://lilwikipedia.github.io/rf-meter",
"private": true,
"version": "0.0.0",
"type": "module",
"homepage": "https://lilwikipedia.github.io/rf-meter",
"scripts": {
"dev": "vite",
"build": "vite build",
Expand All @@ -14,8 +14,6 @@
"deploy": "gh-pages -d dist"
},
"dependencies": {
"@capacitor/core": "^6.1.2",
"@capacitor/device": "^6.0.1",
"@hookform/resolvers": "^3.9.0",
"@radix-ui/react-accordion": "^1.2.0",
"@radix-ui/react-alert-dialog": "^1.1.1",
Expand All @@ -24,7 +22,7 @@
"@radix-ui/react-checkbox": "^1.1.1",
"@radix-ui/react-collapsible": "^1.1.0",
"@radix-ui/react-context-menu": "^2.2.1",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-dialog": "^1.1.2",
"@radix-ui/react-dropdown-menu": "^2.1.1",
"@radix-ui/react-hover-card": "^1.1.1",
"@radix-ui/react-label": "^2.1.0",
Expand All @@ -43,18 +41,17 @@
"@radix-ui/react-toast": "^1.2.1",
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"@radix-ui/react-tooltip": "^1.1.4",
"@supabase/supabase-js": "^2.46.2",
"@tanstack/react-query": "^5.56.2",
"class-variance-authority": "^0.7.0",
"class-variance-authority": "^0.7.1",
"clsx": "^2.1.1",
"cmdk": "^1.0.0",
"date-fns": "^3.6.0",
"embla-carousel-react": "^8.3.0",
"github": "^14.0.0",
"input-otp": "^1.2.4",
"lucide-react": "^0.451.0",
"lucide-react": "^0.462.0",
"next-themes": "^0.3.0",
"pages": "^0.0.16",
"react": "^18.3.1",
"react-day-picker": "^8.10.1",
"react-dom": "^18.3.1",
Expand All @@ -66,27 +63,27 @@
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"vaul": "^0.9.3",
"webpack": "^5.97.0",
"zod": "^3.23.8"
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@tailwindcss/typography": "^0.5.15",
"@types/d3-color": "^3.1.3",
"@types/node": "^22.9.0",
"@types/react": "^18.3.12",
"@types/node": "^22.5.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@types/react-router-dom": "^5.3.3",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react-swc": "^3.5.0",
"autoprefixer": "^10.4.20",
"eslint": "^9.9.0",
"eslint-plugin-react-hooks": "^5.1.0-rc.0",
"eslint-plugin-react-refresh": "^0.4.9",
"gh-pages": "^6.2.0",
"globals": "^15.9.0",
"lovable-tagger": "^1.0.19",
"postcss": "^8.4.47",
"tailwindcss": "^3.4.11",
"typescript": "^5.5.3",
"typescript-eslint": "^8.0.1",
"vite": "^5.4.11"
"vite": "^5.4.1"
}
}
}
8 changes: 4 additions & 4 deletions tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
"noImplicitAny": false,
"noFallthroughCasesInSwitch": false,

"baseUrl": "/rf-meter/",
"baseUrl": ".",
"paths": {
"@/*": ["./src/* "]
"@/*": ["./src/*"]
}
},
"include": ["src","dist"]
}
"include": ["src"]
}
26 changes: 17 additions & 9 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
import react from '@vitejs/plugin-react';
import { defineConfig } from 'vite';
import react from "@vitejs/plugin-react-swc";
import path from "path";
import { defineConfig } from "vite";

export default defineConfig({
base: '/rf-meter/',

// https://vitejs.dev/config/
export default defineConfig(({ mode }) => ({
server: {
host: '0.0.0.0',
host: "::",
port: 8080,
},
plugins: [react()],
build: {
outDir: './dists/',
plugins: [
react(),

].filter(Boolean),
base: '/rf-meter/',
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
},
},
});
}));

0 comments on commit 1848cea

Please sign in to comment.