Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit 0885698

Browse files
committed
Optimize dev command
1 parent a7d1b5a commit 0885698

File tree

42 files changed

+260
-1229
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+260
-1229
lines changed

dev.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import dev from "./server/dev.ts";
22

33
if (import.meta.main) {
4-
const generateExportTs = Deno.args.includes("--generate");
5-
dev({ generateExportTs });
4+
dev(Deno.args[0]);
65
}

examples/api-app/dev.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/api-app/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import denoDeploy from "aleph/plugins/deploy";
33
import modules from "./routes/_export.ts";
44

55
serve({
6-
baseUrl: import.meta.url,
76
plugins: [
87
denoDeploy({ modules }),
98
],

examples/github-oauth-middleware/dev.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/github-oauth-middleware/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { GithubOauth } from "./middlewares/oauth.ts";
77
import modules from "./routes/_export.ts";
88

99
serve({
10-
baseUrl: import.meta.url,
1110
plugins: [
1211
denoDeploy({ modules }),
1312
react({ ssr: true }),

examples/leptos-app/dev.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { fromFileUrl } from "std/path/mod.ts";
1+
import { fromFileUrl, join } from "std/path/mod.ts";
22
import dev, { createWatchFsEmitter } from "aleph/dev";
33

44
const emitter = createWatchFsEmitter();
@@ -60,7 +60,7 @@ async function start() {
6060
buildClientProc.close();
6161
await Deno.remove(`${cwd}/pkg/.gitignore`);
6262
// start aleph dev server
63-
dev({ baseUrl: import.meta.url });
63+
dev(join(cwd, "server.ts"));
6464
} finally {
6565
buildServerProc = null;
6666
buildClientProc = null;

examples/leptos-app/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ const wasmUrl = new URL("./pkg/server_bg.wasm", import.meta.url);
55
await init(await Deno.readFile(wasmUrl));
66

77
serve({
8-
baseUrl: import.meta.url,
98
ssr: ({ url }) => {
109
return ssr(url.href);
1110
},

examples/monaco-editor/server.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
import { serve } from "aleph/server";
22

3-
serve({
4-
baseUrl: import.meta.url,
5-
});
3+
serve({});

examples/react-app/dev.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/react-app/server.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import denoDeploy from "aleph/plugins/deploy";
44
import modules from "./routes/_export.ts";
55

66
serve({
7-
baseUrl: import.meta.url,
87
plugins: [
98
denoDeploy({ modules }),
109
react({ ssr: true }),

0 commit comments

Comments
 (0)