Skip to content

Commit

Permalink
Broadcast grouping (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
fitztrev authored Oct 16, 2024
1 parent 3c7d119 commit 88b750f
Show file tree
Hide file tree
Showing 26 changed files with 673 additions and 13,066 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,21 +52,27 @@ pnpm test
pnpm test:watch
```

### PGN Testing
### Testing

#### Simulate boards writing PGN to a folder:
#### To seed a bunch of test broadcasts with rounds:

```bash
pnpx tsx sample-data/generate/add-broadcasts.ts
```

#### To simulate boards writing PGN to a folder:

1. In the app, select a Round and start a folder watch.
2. Run this to automatically write a bunch of PGN to the folder:

```bash
pnpm esrun sample-data/generate/index.ts games path/to/folder
pnpx tsx sample-data/generate/index.ts games path/to/folder
```

Test errors by writing bad PGN files:
#### Test errors by writing bad PGN files:

```bash
pnpm esrun sample-data/generate/index.ts errors path/to/folder
pnpx tsx sample-data/generate/index.ts errors path/to/folder
```

### Icon Generation
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
<!doctype html>
<html lang="en">
<html lang="en" class="h-full bg-gray-800">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Lichess Broadcaster</title>
</head>

<body class="h-screen bg-gray-800">
<div id="app" class="p-4 h-full flex flex-col"></div>
<body class="h-full">
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,19 @@
},
"dependencies": {
"@headlessui/vue": "^1.7.23",
"@heroicons/vue": "^2.1.5",
"@tauri-apps/api": "^1.6.0",
"fetch-ndjson": "^1.1.7",
"openapi-fetch": "^0.12.2",
"pinia": "^2.2.4",
"pinia-plugin-persistedstate": "^4.1.1",
"tauri-plugin-fs-watch-api": "github:tauri-apps/tauri-plugin-fs-watch#v1",
"vue": "^3.5.12",
"vue-router": "^4.4.5"
},
"devDependencies": {
"@digitak/esrun": "^3.2.26",
"@faker-js/faker": "^9.0.3",
"@lichess-org/types": "^2.0.15",
"@tauri-apps/cli": "^1.6.2",
"@types/node": "^22.7.5",
"@vitejs/plugin-vue": "^5.1.4",
Expand Down
Loading

0 comments on commit 88b750f

Please sign in to comment.