chore: scaffold cfw-attachment worker

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Claude
2026-07-02 07:31:32 -07:00
commit faaa66490b
5 changed files with 1643 additions and 0 deletions

5
.gitignore vendored Normal file
View File

@@ -0,0 +1,5 @@
node_modules/
.wrangler/
.dev.vars
dist/
coverage/

25
package.json Normal file
View File

@@ -0,0 +1,25 @@
{
"name": "cfw-attachment",
"version": "0.1.0",
"private": true,
"packageManager": "pnpm@10.33.0",
"type": "module",
"scripts": {
"dev": "wrangler dev",
"deploy": "wrangler deploy",
"db:apply:local": "wrangler d1 migrations apply cfw-attachment --local",
"db:apply:remote": "wrangler d1 migrations apply cfw-attachment --remote",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"ready": "pnpm typecheck && pnpm test"
},
"dependencies": {
"hono": "^4.8.0"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20260601.0",
"typescript": "^5.8.0",
"vitest": "^3.2.0",
"wrangler": "^4.20.0"
}
}

1594
pnpm-lock.yaml generated Normal file

File diff suppressed because it is too large Load Diff

12
tsconfig.json Normal file
View File

@@ -0,0 +1,12 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "ESNext",
"moduleResolution": "Bundler",
"strict": true,
"types": ["@cloudflare/workers-types", "vitest/globals"],
"skipLibCheck": true,
"noEmit": true
},
"include": ["src", "tests", "vitest.config.ts"]
}

7
vitest.config.ts Normal file
View File

@@ -0,0 +1,7 @@
import { defineConfig } from "vitest/config";
export default defineConfig({
test: {
environment: "node",
},
});