Move some files so that deno task dev works

This commit is contained in:
Dylan Pizzo committed 2025-01-05 22:17:30 -05:00
1 parent 0da7c3ab23
commit 3bb0308949
46 files changed
+7 -6

No files matched your search

+1
View File
@@ -4,3 +4,4 @@ node_modules
.env
**/dist/**/*
static/dist
+2 -2
View File
@@ -3,9 +3,9 @@
"tasks": {
"dev": "deno run -A tools/dev.ts",
"build": "deno run -A tools/build.ts",
"build:watch": "deno run --watch=src/client,src/server -A tools/build.ts",
"build:watch": "deno run --watch=src -A tools/build.ts",
"serve": "deno run -A src/server/index.ts",
"serve:watch": "deno run --watch=src/client,src/server -A src/server/index.ts"
"serve:watch": "deno run --watch=src -A src/server/index.ts"
},
"lint": {
"rules": {
+1 -1
View File
@@ -121,7 +121,7 @@ const drawStandardCard = async (
context.drawImage(colorImage(getImage("card-brown"), "#ff9911"), 0, 0);
context.drawImage(getImage("card-description-focus"), 44, 1094);
// Draw the name
drawText(context, card.title, 300, 300);
drawText(context, card.title, 400, 500);
// Draw the description
// Draw the types
// Draw the cost
+2 -2
View File
@@ -5,10 +5,10 @@ Deno.serve((req: Request) => {
if (pathname.startsWith("/static")) {
return serveDir(req, {
fsRoot: "src/static",
fsRoot: "static",
urlRoot: "static",
});
} else {
return serveFile(req, "src/static/index.html");
return serveFile(req, "static/index.html");
}
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -17,7 +17,7 @@ await esbuild.build({
plugins: [...denoPlugins()],
absWorkingDir: projectRootDir,
entryPoints: ["src/client/index.tsx"],
outfile: "src/static/dist/bundle.js",
outfile: "static/dist/bundle.js",
bundle: true,
format: "esm",
target,