From 4ba6f494d263aadb4633283f3edbfaf6408302d3 Mon Sep 17 00:00:00 2001 From: pinks Date: Wed, 18 Oct 2023 23:08:18 +0200 Subject: [PATCH] sort config --- .gitignore | 4 ++-- README.md | 8 ++------ deno.json | 26 +++++++++++++------------- 3 files changed, 17 insertions(+), 21 deletions(-) diff --git a/.gitignore b/.gitignore index 83665ca..c728a1a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,3 @@ .env -app*.db* -updateConfig.ts +*.db +*.db-* diff --git a/README.md b/README.md index 0f5e9aa..7d2b084 100644 --- a/README.md +++ b/README.md @@ -26,9 +26,5 @@ worker. ## Codegen -The Stable Diffusion API in `app/sdApi.ts` is auto-generated. To regenerate it, first start your SD -WebUI with `--nowebui --api`, and then run: - -```sh -deno run npm:openapi-typescript http://localhost:7861/openapi.json -o app/sdApi.ts -``` +The Stable Diffusion API types are auto-generated. To regenerate them, first start your SD WebUI +with `--nowebui --api`, and then run `deno task generate` diff --git a/deno.json b/deno.json index 84c6f2d..b0c34fa 100644 --- a/deno.json +++ b/deno.json @@ -1,7 +1,8 @@ { "tasks": { - "start": "deno run --unstable --allow-env --allow-read --allow-write --allow-net main.ts", - "check": "deno check --unstable main.ts && deno check --unstable ui/main.tsx" + "check": "deno check --unstable main.ts && deno check --unstable ui/main.tsx", + "generate": "deno run npm:openapi-typescript http://localhost:7861/openapi.json -o app/sdApi.ts", + "start": "deno run --unstable --allow-env --allow-read --allow-write --allow-net main.ts" }, "compilerOptions": { "jsx": "react" @@ -18,22 +19,29 @@ }, "imports": { "@date-fns/utc": "https://cdn.skypack.dev/@date-fns/utc@1.1.0?dts", + "@twind/core": "https://esm.sh/@twind/core@1.1.3?dev", + "@twind/preset-tailwind": "https://esm.sh/@twind/preset-tailwind@1.1.4?dev", "async": "https://deno.land/x/async@v2.0.2/mod.ts", "date-fns": "https://cdn.skypack.dev/date-fns@2.30.0?dts", "file_type": "https://esm.sh/file-type@18.5.0", + "grammy": "https://lib.deno.dev/x/grammy@1/mod.ts", "grammy_autoquote": "https://lib.deno.dev/x/grammy_autoquote@1/mod.ts", "grammy_files": "https://lib.deno.dev/x/grammy_files@1/mod.ts", "grammy_parse_mode": "https://lib.deno.dev/x/grammy_parse_mode@1/mod.ts", "grammy_runner": "https://lib.deno.dev/x/grammy_runner@2/mod.ts", "grammy_stateless_question": "https://lib.deno.dev/x/grammy_stateless_question_alpha@3/mod.ts", "grammy_types": "https://lib.deno.dev/x/grammy_types@3/mod.ts", - "grammy": "https://lib.deno.dev/x/grammy@1/mod.ts", "indexed_kv": "https://deno.land/x/indexed_kv@v0.5.0/mod.ts", "kvfs": "https://deno.land/x/kvfs@v0.1.0/mod.ts", "kvmq": "https://deno.land/x/kvmq@v0.3.0/mod.ts", "openapi_fetch": "https://esm.sh/openapi-fetch@0.7.6", "png_chunk_text": "https://esm.sh/png-chunk-text@1.0.0", "png_chunks_extract": "https://esm.sh/png-chunks-extract@1.0.0", + "react": "https://esm.sh/react@18.2.0?dev", + "react-dom/client": "https://esm.sh/react-dom@18.2.0/client?dev", + "react-flip-move": "https://esm.sh/react-flip-move@3.0.5?dev", + "react-intl": "https://esm.sh/react-intl@6.4.7?external=react&alias=@types/react:react&dev", + "react-router-dom": "https://esm.sh/react-router-dom@6.16.0?dev", "reroute": "https://deno.land/x/reroute@v0.1.0/mod.ts", "serve_spa": "https://deno.land/x/serve_spa@v0.2.0/mod.ts", "std/async/": "https://deno.land/std@0.201.0/async/", @@ -43,19 +51,11 @@ "std/fmt/": "https://deno.land/std@0.202.0/fmt/", "std/log/": "https://deno.land/std@0.201.0/log/", "std/path/": "https://deno.land/std@0.204.0/path/", - "t_rest/server": "https://esm.sh/ty-rest@0.4.0/server?dev", - "ulid": "https://deno.land/x/ulid@v0.3.0/mod.ts", - - "@twind/core": "https://esm.sh/@twind/core@1.1.3?dev", - "@twind/preset-tailwind": "https://esm.sh/@twind/preset-tailwind@1.1.4?dev", - "react-dom/client": "https://esm.sh/react-dom@18.2.0/client?dev", - "react-flip-move": "https://esm.sh/react-flip-move@3.0.5?dev", - "react-intl": "https://esm.sh/react-intl@6.4.7?external=react&alias=@types/react:react&dev", - "react-router-dom": "https://esm.sh/react-router-dom@6.16.0?dev", - "react": "https://esm.sh/react@18.2.0?dev", "swr": "https://esm.sh/swr@2.2.4?dev", "swr/mutation": "https://esm.sh/swr@2.2.4/mutation?dev", "t_rest/client": "https://esm.sh/ty-rest@0.4.0/client?dev", + "t_rest/server": "https://esm.sh/ty-rest@0.4.0/server?dev", + "ulid": "https://deno.land/x/ulid@v0.3.0/mod.ts", "use-local-storage": "https://esm.sh/use-local-storage@3.0.0?dev" } }