dart_exporter 2.0.0 dart_exporter: ^2.0.0 copied to clipboard
generate exports with build runner
Create exports with build runner
Usage #
Add package to dev_dependencies
dev_dependencies:
build_runner:
dart_exporter: {version}
Config #
add export configs to pubspec.yaml
dart_exporter:
ingore_if_path_matched:
- .g.dart
- .gen.dart
dart pub run build_runner build
Features and bugs #
When adding/removing @doNotExport annotations (from dart_exporter_annotation
package),
You need to DELETE generated file named src/exports.dart_exporter.dart
before run build_runner to generate updated exports