This commit is contained in:
33333-33333 2026-08-11 21:51:07 +09:00
commit de7c6c32bd
123 changed files with 13201 additions and 6213 deletions

View file

@ -1,84 +1,54 @@
# Prefecture Map Generator
A browser-based procedural prefecture map generator.
Browser-based procedural prefecture map generator.
## Project layout
- `src/` - application modules and web workers
- `styles/` - application styles
- `tests/` - reusable browser and Node.js tests
- `tests/` - browser and Node.js regression tests
- `scripts/` - local development server helpers
- `docs/` - design history and release verification
- `archive/` - recoverable historical and legacy files, excluded from the active app
- `index.html` - application entry point
## Run locally
On Windows:
Windows:
```bat
scripts\start_server.bat 8000
```
On macOS or Linux:
macOS / Linux:
```sh
./scripts/start_server.sh 8000
```
Then open `http://127.0.0.1:8000/`.
Open `http://127.0.0.1:8000/`.
## Tests
Run the aggregate Node.js regression runner:
The default manifest runs the fast, canonical Node.js gates:
```sh
node tests/test-all.mjs
```
Heavy full-map shards can also be run independently, which is the recommended CI layout for memory-constrained workers:
The release manifest includes the default gates plus the longer production,
quality, cancellation, and mirror-synchronization checks:
```sh
node tests/additional-generation-unit.mjs
node tests/additional-generation-coverage-worker.mjs
node tests/test.js --suite=core
node tests/test.js --suite=terrain
node tests/test.js --suite=terrain-name
node tests/test.js --suite=admin
node tests/test.js --suite=patch
node tests/test.js --suite=patch-large
node tests/test.js --suite=determinism-114514
TEST_GROUP=release node tests/test-all.mjs
```
Run the focused additional-generation release gates:
The browser manifest launches the application-level Chromium regression test:
```sh
node tests/patch-worker-mirror-sync.mjs
node tests/patch-worker-cancel.mjs
node tests/additional-generation-max-worker.mjs
TEST_GROUP=browser node tests/test-all.mjs
```
The maximum-visible Expansion gate accepts a world seed and Variant through environment variables. CI should run these as independent matrix jobs rather than retaining multiple full worlds in one process:
```sh
PATCH_TEST_WORLD_SEED=12345 PATCH_TEST_VARIANT=0 node tests/additional-generation-max-worker.mjs
PATCH_TEST_WORLD_SEED=54321 PATCH_TEST_VARIANT=1 node tests/additional-generation-max-worker.mjs
```
Run the browser smoke profile:
```sh
node tests/run-additional-generation-browser.mjs
```
Run the 20-sample maximum-visible Expansion browser profile:
```sh
BROWSER_E2E_PROFILE=release \
BROWSER_E2E_WORKLOADS=expansion-max-visible \
node tests/run-additional-generation-browser.mjs
```
The browser test page is also available at `http://127.0.0.1:8000/tests/test.html`.
For the current r3 additional-generation verification record, see `docs/additional-generation-release-verification-20260810.md`.
On PowerShell, set a group with `$env:TEST_GROUP = "release"` (or
`"browser"`) before running the same command. To run specific registered
suites, provide a comma-separated `TEST_SUITES` value. Unknown suite and group
names fail immediately rather than succeeding without assertions.