diff --git a/.gitignore b/.gitignore index 9703c86..72cfbad 100644 --- a/.gitignore +++ b/.gitignore @@ -111,3 +111,9 @@ dist # TernJS port file .tern-port + +# IDE +.idea/ + +# runtime data +data/ diff --git a/bun.lock b/bun.lock new file mode 100644 index 0000000..f93a13c --- /dev/null +++ b/bun.lock @@ -0,0 +1,29 @@ +{ + "lockfileVersion": 1, + "configVersion": 1, + "workspaces": { + "": { + "name": "gacha-event-tracker", + "dependencies": { + "zod": "^3.23.8", + }, + "devDependencies": { + "@types/bun": "^1.1.10", + "typescript": "^5.6.3", + }, + }, + }, + "packages": { + "@types/bun": ["@types/bun@1.3.14", "", { "dependencies": { "bun-types": "1.3.14" } }, "sha512-h1hFqFVcvAvD9j9K7ZW7vd82aSA+rTdznZa+5bwvCwqSB1jmmfLcbIWhOLx1/+boy/xmjgCs/OMUL8hRJSmnPw=="], + + "@types/node": ["@types/node@26.2.0", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-5IviulTZeRNp2vAJ514cc/HUlY5nZ9fCbq9DMyC52BrhFZACo3nI0R7qBxhQmo/d27NFe96ur/b7Wwxklda+kg=="], + + "bun-types": ["bun-types@1.3.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-4N0ig0fEomHt5R0KCFWjovxow98rIoRwKolrYdCcknNwMekCXRnWEUvgu5soYV8QXtVsrUD8B95MBOZGPvr6KQ=="], + + "typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="], + + "undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="], + + "zod": ["zod@3.25.76", "", {}, "sha512-gzUt/qt81nXsFGKIFcC3YnfEAx5NkunCfnDlvuBSSFS02bcXu4Lmea0AFIUwbLWxWPx3d9p8S5QoaujKcNQxcQ=="], + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..263e19d --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "name": "gacha-event-tracker", + "private": true, + "type": "module", + "scripts": { + "test": "bun test", + "typecheck": "tsc --noEmit", + "parse": "bun run scripts/parse-fixture.ts" + }, + "dependencies": { + "zod": "^3.23.8" + }, + "devDependencies": { + "@types/bun": "^1.1.10", + "typescript": "^5.6.3" + } +} diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..556f09f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,19 @@ +{ + "compilerOptions": { + "lib": ["ESNext", "DOM"], + "target": "ESNext", + "module": "ESNext", + "moduleResolution": "bundler", + "types": ["bun-types"], + "allowImportingTsExtensions": true, + "noEmit": true, + "strict": true, + "noUncheckedIndexedAccess": true, + "noImplicitOverride": true, + "noFallthroughCasesInSwitch": true, + "exactOptionalPropertyTypes": true, + "skipLibCheck": true, + "verbatimModuleSyntax": true + }, + "include": ["src", "test", "scripts"] +}