builder library

Classes

BuildConfig
Build-time configuration for generating and serving a Spry app.
ErrorEntry
Metadata for a discovered error file.
GeneratedFile
A generated file written during spry build or spry serve.
HooksEntry
Metadata discovered from hooks.dart.
MiddlewareEntry
Metadata for a discovered middleware file.
RouteEntry
Metadata for a discovered route file.
RouteTree
Scanned route metadata used by the generator.

Functions

generate(RouteTree tree, BuildConfig config) Future<List<GeneratedFile>>
Generates framework entry files from a scanned route tree.
loadConfig({String? configPath, Map<String, dynamic> overrides = const {}}) Future<BuildConfig>
Loads spry.config.dart and merges the supplied overrides.
scan(BuildConfig config) Future<RouteTree>
Scans the project filesystem and builds a RouteTree.

Exceptions / Errors

LoadConfigException
Error thrown when loading spry.config.dart fails.
RouteScanException
Error thrown when route discovery finds an invalid route layout.