From 65d949b4fafb7a814afae4980a9d61a1b1de3f67 Mon Sep 17 00:00:00 2001 From: Julien Oculi Date: Tue, 4 Jun 2024 14:58:55 +0200 Subject: [PATCH] doc: add doc and test --- deno.json | 4 +++- deno.lock | 4 ++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/deno.json b/deno.json index e9eefb2..307cb6f 100644 --- a/deno.json +++ b/deno.json @@ -1,6 +1,8 @@ { "tasks": { - "serve": "deno run --allow-net=\"https://git.cohabit.fr,localhost:$PORT,127.0.0.1:$PORT,0.0.0.0:$PORT\" ./server.ts" + "serve": "deno run --allow-net=\"https://git.cohabit.fr,localhost:$PORT,127.0.0.1:$PORT,0.0.0.0:$PORT\" --allow-env=PORT,COHABIT_GIT_URL,PORTFOLIO_BASE_URL ./server.ts", + "test": "deno test --ignore=server.ts --allow-env=PORT,COHABIT_GIT_URL,PORTFOLIO_BASE_URL --doc", + "doc": "deno doc --html --name='Portfolio Sever' ./src/*.ts" }, "fmt": { "singleQuote": true, diff --git a/deno.lock b/deno.lock index 211c70a..7a2b3ea 100644 --- a/deno.lock +++ b/deno.lock @@ -3,12 +3,16 @@ "packages": { "specifiers": { "jsr:@std/assert@^0.226.0": "jsr:@std/assert@0.226.0", + "jsr:@std/media-types@^0.224.1": "jsr:@std/media-types@0.224.1", "jsr:@std/path@^0.225.2": "jsr:@std/path@0.225.2" }, "jsr": { "@std/assert@0.226.0": { "integrity": "0dfb5f7c7723c18cec118e080fec76ce15b4c31154b15ad2bd74822603ef75b3" }, + "@std/media-types@0.224.1": { + "integrity": "9e69a5daed37c5b5c6d3ce4731dc191f80e67f79bed392b0957d1d03b87f11e1" + }, "@std/path@0.225.2": { "integrity": "0f2db41d36b50ef048dcb0399aac720a5348638dd3cb5bf80685bf2a745aa506", "dependencies": [