Deno/Vite/React/TS template and schema.sql

This commit is contained in:
2024-11-30 14:10:10 -07:00
parent 2e338bd407
commit 8c842936a1
16 changed files with 1113 additions and 0 deletions

35
deno.json Normal file
View File

@@ -0,0 +1,35 @@
{
"tasks": {
"dev": "deno run -A --node-modules-dir=auto npm:vite",
"build": "deno run -A --node-modules-dir=auto npm:vite build",
"server:start": "deno run -A --node-modules-dir --watch ./server/main.ts",
"serve": "deno task build && deno task server:start"
},
"imports": {
"@deno/vite-plugin": "npm:@deno/vite-plugin@^1.0.0",
"@oak/oak": "jsr:@oak/oak@^17.1.3",
"@std/assert": "jsr:@std/assert@1",
"@std/expect": "jsr:@std/expect@^1.0.8",
"@std/testing": "jsr:@std/testing@^1.0.5",
"@types/react": "npm:@types/react@^18.3.12",
"@vitejs/plugin-react": "npm:@vitejs/plugin-react@^4.3.3",
"react": "npm:react@^18.3.1",
"react-dom": "npm:react-dom@^18.3.1",
"react-router-dom": "npm:react-router-dom@^6.28.0",
"vite": "npm:vite@^5.4.11"
},
"compilerOptions": {
"types": [
"react",
"react-dom",
"@types/react"
],
"lib": [
"dom",
"dom.iterable",
"deno.ns"
],
"jsx": "react-jsx",
"jsxImportSource": "react"
}
}