- Bootstraps `src/core/` foundation (`db.ts`, `valkey.ts`, `spire_ffi.ts`, `main.ts`). - Adds `auth_guards.ts` for payload capping, CSRF check, and rate limiting. - Adds `content_negotiation.ts` and `sse_adapter.ts` for Datastar transport helpers. - Adds `error_fragments.tsx` for standardized Datastar error morphs. - Introduces `scripts/lint_arch.ts` to block imperative DOM usage. - Updates `deno.json` with src workspace configs and lint commands. Co-authored-by: mrteye <1945243+mrteye@users.noreply.github.com>
56 lines
1.4 KiB
JSON
56 lines
1.4 KiB
JSON
{
|
|
"workspace": [
|
|
"./sdk",
|
|
"./server",
|
|
"./ui",
|
|
"./src"
|
|
],
|
|
"license": "MIT OR Apache-2.0",
|
|
"tasks": {
|
|
"dev": "deno run --watch -A --unstable-ffi server/main.ts",
|
|
"start": "deno run -A --unstable-ffi server/main.ts",
|
|
"test": "deno test -A --unstable-ffi",
|
|
"lint": "deno lint && deno run -A scripts/lint_arch.ts",
|
|
"lint:arch": "deno run -A scripts/lint_arch.ts",
|
|
"fmt": "deno fmt",
|
|
"check": "deno check server/**/*.ts sdk/**/*.ts ui/**/*.ts infra/**/*.ts src/**/*.ts src/**/*.tsx",
|
|
"setup": "deno run -A infra/setup.ts",
|
|
"release": "deno run -A infra/setup.ts release"
|
|
},
|
|
"lint": {
|
|
"exclude": [
|
|
"sdk/gen/",
|
|
"ui/public/wasm/",
|
|
"ui/public/ui/utils/",
|
|
"wasm/"
|
|
],
|
|
"rules": {
|
|
"exclude": [
|
|
"no-empty",
|
|
"no-import-prefix",
|
|
"no-unversioned-import",
|
|
"no-explicit-any",
|
|
"require-await"
|
|
]
|
|
}
|
|
},
|
|
"fmt": {
|
|
"exclude": [
|
|
"sdk/gen/",
|
|
"ui/public/wasm/",
|
|
"ui/public/ui/utils/",
|
|
"wasm/"
|
|
]
|
|
},
|
|
"compilerOptions": {
|
|
"jsx": "react-jsx",
|
|
"jsxImportSource": "jsr:@hono/hono@4/jsx"
|
|
},
|
|
"imports": {
|
|
"@bufbuild/protobuf": "npm:@bufbuild/protobuf@^1.10.0",
|
|
"@cliffy/command": "jsr:@cliffy/command@1.0.0-rc.7",
|
|
"@connectrpc/connect": "npm:@connectrpc/connect@^1.4.0",
|
|
"@connectrpc/connect-node": "npm:@connectrpc/connect-node@^1.4.0"
|
|
}
|
|
}
|