Skip to content

Commit 774658a

Browse files
committed
chore: move files from lib/ to src/
1 parent 5e9e3ff commit 774658a

File tree

13 files changed

+7
-10
lines changed

13 files changed

+7
-10
lines changed

.dockerignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
*
2-
!lib/
2+
!src/
33
!*.ts
44
!deno.json

Dockerfile

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@ FROM denoland/deno:alpine-1.45.0
33
USER deno
44
WORKDIR /app
55

6-
COPY deps.ts .
7-
RUN deno cache deps.ts
8-
96
COPY . .
10-
RUN deno cache main.ts
7+
RUN deno cache src/main.ts
118

12-
CMD ["run", "--allow-env", "--allow-net=:8080,discord.com", "--unstable-kv", "main.ts"]
9+
CMD ["run", "--allow-env", "--allow-net=:8080,discord.com", "--unstable-kv", "src/main.ts"]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ see [configuration](#configuration) below for more.
1111
## Usage
1212

1313
0. Host the project somewhere, for example https://deno.com/deploy. Remember to add the environment
14-
variables you may want to set, see [`lib/config.ts`](./lib/config.ts).
14+
variables you may want to set, see [`src/config.ts`](./src/config.ts).
1515
1. Create a Discord webhook (`https://discord.com/api/webhooks/1234/ABCDWXYZ`).
1616
2. Take the ID (`1234`) and token (`ABCDWXYZ`) from the URL, and enter
1717
`https://<filter_url>/1234/ABCDWXYZ` (note: no `/github`) in the GitHub webhook settings:\
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

main.ts renamed to src/main.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import * as log from "@std/log";
22
import * as httpErrors from "x/http_errors";
33

4-
import config from "./lib/config.ts";
5-
import handler from "./lib/handler.ts";
6-
import { requestLog } from "./lib/util.ts";
4+
import config from "./config.ts";
5+
import handler from "./handler.ts";
6+
import { requestLog } from "./util.ts";
77

88
function setupLogs() {
99
log.setup({

0 commit comments

Comments
 (0)