From a281135018385a7af6873ee40b4f24aa64cb3ee5 Mon Sep 17 00:00:00 2001 From: Z Date: Mon, 7 Apr 2025 06:23:57 +0800 Subject: [PATCH 1/4] Update showcase.json update freshpress and my site, all made by deno and fresh framwork --- www/data/showcase.json | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/www/data/showcase.json b/www/data/showcase.json index b8b75569898..10fce6d9bcb 100644 --- a/www/data/showcase.json +++ b/www/data/showcase.json @@ -421,5 +421,17 @@ "link": "https://wtfiscongressdoingnow.us", "github": "gibbygano/wtfiscongressdoingnow", "image": "wtfcongress" + }, + { + "title": "freshpress", + "link": "https://freshpress.deno.dev", + "github": "https://github.com/SisyphusZheng/freshpress", + "image": "freshpress" + } + { + "title": "zhizheng's website", + "link": "https://zhizheng.deno.dev", + "github": "https://github.com/SisyphusZheng/me", + "image": "zhizheng" } ] From b61f729a6fe45214d83a51000c4d82b31d9b8ce8 Mon Sep 17 00:00:00 2001 From: Z Date: Mon, 7 Apr 2025 06:24:39 +0800 Subject: [PATCH 2/4] Update showcase.json --- www/data/showcase.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/data/showcase.json b/www/data/showcase.json index 10fce6d9bcb..9ffdd565573 100644 --- a/www/data/showcase.json +++ b/www/data/showcase.json @@ -427,7 +427,7 @@ "link": "https://freshpress.deno.dev", "github": "https://github.com/SisyphusZheng/freshpress", "image": "freshpress" - } + }, { "title": "zhizheng's website", "link": "https://zhizheng.deno.dev", From 698796a371cd4828bff782243144264e8b27cbcc Mon Sep 17 00:00:00 2001 From: zhizheng Date: Sat, 26 Apr 2025 07:26:27 +0000 Subject: [PATCH 3/4] Ensure the tasks field for check/fmt/lint can correctly find ts/tsx files & refmt the showcase json format --- init/src/init_test.ts | 8 +++++++- www/data/showcase.json | 6 +++--- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/init/src/init_test.ts b/init/src/init_test.ts index c0a2a898b3a..f2f068c8591 100644 --- a/init/src/init_test.ts +++ b/init/src/init_test.ts @@ -26,8 +26,14 @@ async function patchProject(dir: string): Promise { // json.patch = [path.fromFileURL(new URL("../..", import.meta.url))]; json.patch = [new URL("../..", import.meta.url).href]; - // assert with this stricter rule, before adding it to initialized projects + // Ensure the tasks field for check/fmt/lint can correctly find ts/tsx files json.lint.rules.include = ["verbatim-module-syntax"]; + json.tasks = { + ...json.tasks, + check: "deno fmt --check . && deno lint . && deno check **/*.ts **/*.tsx", + fmt: "deno fmt --check .", + lint: "deno lint ." + }; await Deno.writeTextFile(jsonPath, JSON.stringify(json, null, 2) + "\n"); } diff --git a/www/data/showcase.json b/www/data/showcase.json index 9ffdd565573..4df97712228 100644 --- a/www/data/showcase.json +++ b/www/data/showcase.json @@ -422,15 +422,15 @@ "github": "gibbygano/wtfiscongressdoingnow", "image": "wtfcongress" }, - { + { "title": "freshpress", "link": "https://freshpress.deno.dev", "github": "https://github.com/SisyphusZheng/freshpress", "image": "freshpress" }, - { + { "title": "zhizheng's website", - "link": "https://zhizheng.deno.dev", + "link": "https://zhi.deno.dev", "github": "https://github.com/SisyphusZheng/me", "image": "zhizheng" } From bd11282ec77db38555b424785efa6fd4103e09da Mon Sep 17 00:00:00 2001 From: zhizheng Date: Sat, 26 Apr 2025 07:30:40 +0000 Subject: [PATCH 4/4] fix: reformat format --- init/src/init_test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init/src/init_test.ts b/init/src/init_test.ts index f2f068c8591..8b475cf5e3f 100644 --- a/init/src/init_test.ts +++ b/init/src/init_test.ts @@ -32,7 +32,7 @@ async function patchProject(dir: string): Promise { ...json.tasks, check: "deno fmt --check . && deno lint . && deno check **/*.ts **/*.tsx", fmt: "deno fmt --check .", - lint: "deno lint ." + lint: "deno lint .", }; await Deno.writeTextFile(jsonPath, JSON.stringify(json, null, 2) + "\n");