normalize project structure: src/client + src/server + src/shared, standardize biome to lineWidth 80
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -7,7 +7,9 @@ import { defineConfig } from "vite"
|
||||
import { VitePWA } from "vite-plugin-pwa"
|
||||
|
||||
const pkg = JSON.parse(readFileSync("./package.json", "utf-8"))
|
||||
const gitCount = execSync("git rev-list --count HEAD", { encoding: "utf-8" }).trim()
|
||||
const gitCount = execSync("git rev-list --count HEAD", {
|
||||
encoding: "utf-8",
|
||||
}).trim()
|
||||
|
||||
export default defineConfig({
|
||||
base: "/whattoplay/",
|
||||
@@ -15,7 +17,10 @@ export default defineConfig({
|
||||
__APP_VERSION__: JSON.stringify(`${pkg.version}+${gitCount}`),
|
||||
},
|
||||
plugins: [
|
||||
TanStackRouterVite(),
|
||||
TanStackRouterVite({
|
||||
routesDirectory: "src/client/routes",
|
||||
generatedRouteTree: "src/client/routeTree.gen.ts",
|
||||
}),
|
||||
react(),
|
||||
tailwindcss(),
|
||||
VitePWA({
|
||||
@@ -40,7 +45,7 @@ export default defineConfig({
|
||||
],
|
||||
resolve: {
|
||||
alias: {
|
||||
"@": "/src",
|
||||
"@": "/src/client",
|
||||
},
|
||||
},
|
||||
server: {
|
||||
|
||||
Reference in New Issue
Block a user