drift/docs/README.md

24 lines
729 B
Markdown
Raw Normal View History

# Drift documentation
2019-08-01 11:56:23 -07:00
Welcome to the source of drift's documentation, live at drift.simonbinder.eu.
We use a static site generator based on `build_runner` to build the documentation.
2019-08-01 11:56:23 -07:00
## Running the website locally
For a fast edit-refresh cycle, run
2019-08-01 11:56:23 -07:00
```
2022-10-25 13:15:09 -07:00
dart run build_runner serve web:8080 --live-reload
```
## Building the website
2022-10-25 13:15:09 -07:00
To build the website into a directory `out`, use:
```
dart run drift_dev schema steps lib/snippets/migrations/exported_eschema/ lib/snippets/migrations/schema_versions.dart
dart run drift_dev schema generate --data-classes --companions lib/snippets/migrations/exported_eschema/ lib/snippets/migrations/tests/generated_migrations/
dart run build_runner build --release --output web:out
```