Skip to content

Commit fc6aaa0

Browse files
committedSep 25, 2024
Use a JSR version of Fedify for the blog example
1 parent c3086f5 commit fc6aaa0

File tree

4 files changed

+24
-107
lines changed

4 files changed

+24
-107
lines changed
 

‎examples/blog/deno.json

+24-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"lock": false,
33
"tasks": {
4-
"fedify-codegen": "cat ../../src/vocab/vocab.ts > /dev/null || (deno run --allow-read --allow-write --check ../../src/codegen/main.ts ../../src/vocab/ ../runtime/ > ../../src/vocab/vocab.ts && deno fmt ../../src/vocab/vocab.ts && deno cache ../../src/vocab/vocab.ts && deno check ../../src/vocab/vocab.ts)",
5-
"generate-import-map": "deno run --allow-read --allow-write generate_import_map.ts",
6-
"codegen": "deno task fedify-codegen && deno task generate-import-map",
7-
"check": "deno task codegen && deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
8-
"cli": "deno task codegen && echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
9-
"manifest": "deno task codegen && deno task cli manifest $(pwd)",
10-
"start": "deno task codegen && deno run -A --watch=static/,routes/ --unstable-kv dev.ts",
11-
"build": "deno task codegen && deno run -A dev.ts build",
12-
"preview": "deno task codegen && deno run -A main.ts",
4+
"check": "deno fmt --check && deno lint && deno check **/*.ts && deno check **/*.tsx",
5+
"cli": "echo \"import '\\$fresh/src/dev/cli.ts'\" | deno run --unstable -A -",
6+
"manifest": "deno task cli manifest $(pwd)",
7+
"start": "deno run -A --watch=static/,routes/ --unstable-kv dev.ts",
8+
"build": "deno run -A dev.ts build",
9+
"preview": "deno run -A main.ts",
1310
"update": "deno run -A -r https://fresh.deno.dev/update ."
1411
},
1512
"lint": {
@@ -23,7 +20,24 @@
2320
"exclude": [
2421
"**/_fresh/*"
2522
],
26-
"importMap": "./import_map.g.json",
23+
"imports": {
24+
"$fresh/": "https://deno.land/x/fresh@1.6.8/",
25+
"@preact/signals": "https://esm.sh/*@preact/signals@1.2.2",
26+
"@preact/signals-core": "https://esm.sh/*@preact/signals-core@1.5.1",
27+
"@std/dotenv/load": "jsr:@std/dotenv@^0.224.0/load",
28+
"@std/encoding/hex": "jsr:@std/encoding@^0.224.3/hex",
29+
"@std/path": "jsr:@std/path@^0.225.2",
30+
"@std/semver": "jsr:@std/semver@^0.224.3",
31+
"@fedify/fedify": "jsr:@fedify/fedify@1.0.0-dev.414+f75c19cf",
32+
"@hongminhee/x-forwarded-fetch": "jsr:@hongminhee/x-forwarded-fetch@^0.2.0",
33+
"@logtape/logtape": "jsr:@logtape/logtape@^0.6.2",
34+
"markdown-it": "npm:markdown-it@^14.1.0",
35+
"preact": "https://esm.sh/preact@10.19.6",
36+
"preact/": "https://esm.sh/preact@10.19.6/",
37+
"scrypt": "jsr:@denorg/scrypt@4.4.4",
38+
"sanitize-html": "npm:sanitize-html@^2.13.0",
39+
"uuidv7": "npm:uuidv7@^1.0.0"
40+
},
2741
"compilerOptions": {
2842
"jsx": "react-jsx",
2943
"jsxImportSource": "preact"

‎examples/blog/generate_import_map.ts

-13
This file was deleted.

‎examples/blog/import_map.g.json

-56
This file was deleted.

‎examples/blog/import_map.json

-28
This file was deleted.

0 commit comments

Comments
 (0)