nc-photos/codegen_build/lib/builder.dart

15 lines
676 B
Dart
Raw Normal View History

2022-12-16 16:01:04 +01:00
import 'package:build/build.dart';
2023-07-16 12:01:09 +02:00
import 'package:np_codegen_build/src/drift_table_sort_generator.dart';
import 'package:np_codegen_build/src/np_log_generator.dart';
import 'package:np_codegen_build/src/np_subject_accessor_generator.dart';
2022-12-16 16:01:04 +01:00
import 'package:source_gen/source_gen.dart';
2023-07-16 12:01:09 +02:00
Builder driftTableSortBuilder(BuilderOptions options) =>
2023-08-15 18:44:49 +02:00
SharedPartBuilder([const DriftTableSortGenerator()], "drift_table_sort");
2023-07-16 12:01:09 +02:00
2022-12-16 16:01:04 +01:00
Builder npLogBuilder(BuilderOptions options) =>
2023-08-15 18:44:49 +02:00
SharedPartBuilder([const NpLogGenerator()], "np_log");
Builder npSubjectAccessorBuilder(BuilderOptions options) => SharedPartBuilder(
[const NpSubjectAccessorGenerator()], "np_subject_accessor");