mirror of
https://github.com/kennethnym/aris.git
synced 2026-02-02 13:11:17 +00:00
Migrates TFL package from old DataSource interface to new FeedSource interface for use with FeedEngine. Changes: - Rename package from @aris/data-source-tfl to @aris/source-tfl - Replace TflDataSource class with TflSource implementing FeedSource - Add dependency on @aris/source-location for LocationKey - Use normalized priority values (0-1) instead of arbitrary numbers - Update tests for FeedSource interface - Update README.md with new package name Co-authored-by: Ona <no-reply@ona.com>
31 lines
416 B
Markdown
31 lines
416 B
Markdown
# aris
|
|
|
|
To install dependencies:
|
|
|
|
```bash
|
|
bun install
|
|
```
|
|
|
|
## Packages
|
|
|
|
### @aris/source-tfl
|
|
|
|
TfL (Transport for London) feed source for tube, overground, and Elizabeth line alerts.
|
|
|
|
#### Testing
|
|
|
|
```bash
|
|
cd packages/aris-source-tfl
|
|
bun run test
|
|
```
|
|
|
|
#### Fixtures
|
|
|
|
Tests use fixture data from real TfL API responses stored in `fixtures/tfl-responses.json`.
|
|
|
|
To refresh fixtures:
|
|
|
|
```bash
|
|
bun run fetch-fixtures
|
|
```
|