Skip to content

Commit 5b75b56

Browse files
committed
hide build codes
1 parent 17aa162 commit 5b75b56

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

build.ts renamed to build/build.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
import * as ESBuild from "esbuild";
44
import { OPTIONS } from "./config.ts";
5-
import * as Dictionary from "./dictionary/build.ts";
5+
import * as Dictionary from "../dictionary/build.ts";
66

77
const BUILD_OPTIONS: ESBuild.BuildOptions = { ...OPTIONS, minify: true };
88

File renamed without changes.

dev.ts renamed to build/dev.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const BUILD_OPTIONS: ESBuild.BuildOptions = {
1010
define: { LIVE_RELOAD: "true" },
1111
};
1212
if (import.meta.main) {
13-
if (!await exists(new URL("./dictionary/dictionary.ts", import.meta.url))) {
14-
const Dictionary = await import("./dictionary/build.ts");
13+
if (!await exists(new URL("../dictionary/dictionary.ts", import.meta.url))) {
14+
const Dictionary = await import("../dictionary/build.ts");
1515
await Dictionary.build();
1616
}
1717
const command = new Deno.Command(Deno.execPath(), {
@@ -25,7 +25,7 @@ if (import.meta.main) {
2525
"--watch",
2626
"./dictionary/watch.ts",
2727
],
28-
cwd: new URL("./", import.meta.url),
28+
cwd: new URL("../", import.meta.url),
2929
stdout: "inherit",
3030
stderr: "inherit",
3131
stdin: "null",

deno.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
"tasks": {
66
"build": {
77
"description": "Builds every static files needed for GitHub pages",
8-
"command": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./build.ts"
8+
"command": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./build/build.ts"
99
},
1010
"start": {
1111
"description": "Starts a development server. The provided page will auto-reload whenever there are changes to the code.",
12-
"command": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./dev.ts"
12+
"command": "deno run -E -R -W -N=jsr.io --allow-run --no-prompt --frozen --cached-only ./build/dev.ts"
1313
},
1414
"repl": {
1515
"description": "Starts a REPL",

0 commit comments

Comments
 (0)