Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .eslintrc.cjs

This file was deleted.

18 changes: 10 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Bun
uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run test
- run: bun run validate
- run: bun run generate
- uses: voidzero-dev/setup-vp@v1.22.0
with:
node-version: '24'
cache: true
- run: vp check
- run: vp test run
- run: vp run validate
- run: vp run generate
- name: deploy
uses: cloudflare/wrangler-action@v3
with:
Expand All @@ -25,5 +27,5 @@ jobs:
# wrangler-action defaults to its own bundled wrangler (3.90.0),
# which predates wrangler.jsonc support and fails with
# "Missing entry-point". Pin to the project's wrangler version.
wranglerVersion: '4.19.1'
packageManager: bun
wranglerVersion: '4.154.0'
packageManager: pnpm
12 changes: 7 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Bun
uses: oven-sh/setup-bun@v2
- run: bun install --frozen-lockfile
- run: bun run test
- run: bun run validate
- uses: voidzero-dev/setup-vp@v1.22.0
with:
node-version: '24'
cache: true
- run: vp check
- run: vp test run
- run: vp run validate
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ yarn-error.log
.cargo-ok
.wrangler
content/shops.json
.vitest/
9 changes: 0 additions & 9 deletions .prettierrc

This file was deleted.

10 changes: 2 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
{
"deno.enable": false,
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"source.fixAll.oxc": "explicit"
}
}
}
20 changes: 15 additions & 5 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,26 @@ This is the main way people contribute. Add one shop end to end.
### Conventions / gotchas

- Never store a photo `url`; it is generated by the API at runtime.
- Do not create or edit `content/shops.json`; it is generated from the `content/shops/*/` directories (`bun run generate`) and is not committed. Do not edit `tools/legacy-shops-order.json` either; it only freezes the order of the shops added before.
- Do not create or edit `content/shops.json`; it is generated from the `content/shops/*/` directories (`vp run generate`) and is not committed. Do not edit `tools/legacy-shops-order.json` either; it only freezes the order of the shops added before.
- Keep photos under 300KB, longest side ~800px, EXIF stripped.
- Omit `prefecture` when uncertain; never fabricate a location.

## Optional: local checks

Not required — CI runs these on every PR. If you want to verify locally (package manager is **bun**):
Not required — CI runs these on every PR. If you want to verify locally (toolchain is [Vite+](https://viteplus.dev) with **pnpm**):

```sh
bun install # only needed for local checks
bun run test # unit + integration tests
bun run validate # validate all shop/author content
vp install # only needed for local checks
vp check # format, lint, and type check
vp test # unit + integration tests
vp run validate # validate all shop/author content
```

Without a global `vp`, run the same commands through npx (use `--package=vite-plus`; the `vp` package on npm is a different one):

```sh
npx --package=vite-plus vp install
npx vp check
npx vp test
npx vp run validate
```
1,216 changes: 0 additions & 1,216 deletions bun.lock

This file was deleted.

31 changes: 15 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
{
"name": "ramen-api",
"version": "0.0.1",
"main": "src/index.ts",
"license": "MIT",
"type": "module",
"main": "src/index.ts",
"scripts": {
"test": "vitest",
"generate": "bun tools/generate-shops.ts",
"validate": "bun run generate && vitest run --config vitest.validation.config.ts",
"dev": "bun run generate && wrangler dev",
"deploy": "bun run generate && wrangler deploy --minify",
"test": "vp test",
"generate": "vpx tools/generate-shops.ts",
"validate": "vp run generate && vp test run --config vitest.validation.config.ts",
"dev": "vp run generate && wrangler dev",
"deploy": "vp run generate && wrangler deploy --minify",
"tail": "wrangler tail",
"cf-typegen": "wrangler types"
},
"license": "MIT",
"packageManager": "bun@1.3.9",
"dependencies": {
"@hono/graphql-server": "^0.4.1",
"@hono/mcp": "^0.1.0",
Expand All @@ -24,17 +23,17 @@
},
"devDependencies": {
"@cloudflare/vitest-plugin": "^1.4.9",
"@hono/eslint-config": "^0.0.3",
"@types/node": "^22.15.30",
"eslint": "^8.56.0",
"typescript": "^5.3.3",
"vitest": "^4.1.12",
"vite-plus": "catalog:",
"vitest": "catalog:",
"wrangler": "^4.19.1"
},
"engines": {
"node": ">=18"
},
"resolutions": {
"graphql": "^16.6.0"
}
}
},
"engines": {
"node": "^22.18.0 || ^24.11.0 || >=26.0.0"
},
"packageManager": "pnpm@12.15.0"
}
Loading
Loading