Unverified Commit b93d9508 authored by Hong Minhee's avatar Hong Minhee
Browse files

Add hot reloading to `fedify init`

parent 26fdd1c8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -60,6 +60,7 @@ To be released.

     -  Now a scaffold project uses a [x-forwarded-fetch] middleware to
        support `X-Forwarded-Proto` and `X-Forwarded-Host` headers.
     -  Now a scaffold project has hot reloading by default.
     -  Now a scaffold project has logging configuration using the [LogTape]
        library.

+10 −0
Original line number Diff line number Diff line
@@ -248,6 +248,11 @@ Deno.serve(
      },
      tasks: {
        "dev": runtime === "deno"
          ? "deno run -A --watch ./src/index.ts"
          : runtime === "bun"
          ? "bun run --hot ./src/index.ts"
          : "tsx watch ./src/index.ts",
        "prod": runtime === "deno"
          ? "deno run -A ./src/index.ts"
          : runtime === "bun"
          ? "bun run ./src/index.ts"
@@ -594,6 +599,11 @@ Deno.serve(
        },
        tasks: {
          "dev": runtime === "deno"
            ? "deno run -A --watch ./main.ts"
            : runtime === "bun"
            ? "bun run --hot ./main.ts"
            : "tsx watch ./main.ts",
          "prod": runtime === "deno"
            ? "deno run -A ./main.ts"
            : runtime === "bun"
            ? "bun run ./main.ts"