mirror of
https://github.com/Radiquum/AniX.git
synced 2025-09-07 15:03:53 +05:00
feat/api-prox: add bun and deno dev scripts
This commit is contained in:
parent
9fe2ba4aa7
commit
39215c608c
2 changed files with 9 additions and 4 deletions
|
@ -2,6 +2,8 @@
|
||||||
"name": "anixart-serverless-api-proxy",
|
"name": "anixart-serverless-api-proxy",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"deno-dev": "deno serve --unstable-hmr src/index.ts",
|
||||||
|
"bun-dev": "bun run --hot src/index.ts",
|
||||||
"vc-dev": "vercel dev",
|
"vc-dev": "vercel dev",
|
||||||
"cf-dev": "wrangler dev",
|
"cf-dev": "wrangler dev",
|
||||||
"cf-deploy": "wrangler deploy --minify",
|
"cf-deploy": "wrangler deploy --minify",
|
||||||
|
@ -11,6 +13,9 @@
|
||||||
"hono": "^4.9.6"
|
"hono": "^4.9.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"@types/bun": "latest",
|
||||||
|
"@types/node": "latest",
|
||||||
|
"@types/deno": "latest",
|
||||||
"typescript": "^5.9.2",
|
"typescript": "^5.9.2",
|
||||||
"vercel": "^47.0.5",
|
"vercel": "^47.0.5",
|
||||||
"wrangler": "^4.4.0"
|
"wrangler": "^4.4.0"
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
import { Hono } from "hono";
|
import { Hono } from "hono";
|
||||||
import { logger } from "hono/logger";
|
import { logger } from "hono/logger";
|
||||||
import { InfoLogger, RouteLogger } from "./utils/logger.js";
|
import { InfoLogger, RouteLogger } from "./utils/logger.ts";
|
||||||
import {
|
import {
|
||||||
asciiHTML,
|
asciiHTML,
|
||||||
getRunningEnvironment,
|
getRunningEnvironment,
|
||||||
separatorHTML,
|
separatorHTML,
|
||||||
} from "./utils/info.js";
|
} from "./utils/info.ts";
|
||||||
import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.js";
|
import { ANIXART_HEADERS, appVersion, BASE_URLS } from "./config.ts";
|
||||||
import { tryCatchAPI } from "./utils/tryCatch.js";
|
import { tryCatchAPI } from "./utils/tryCatch.ts";
|
||||||
import { hookList, runHooks } from "./hooks/index.ts";
|
import { hookList, runHooks } from "./hooks/index.ts";
|
||||||
|
|
||||||
const app = new Hono({ strict: false });
|
const app = new Hono({ strict: false });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue