build.yaml 816 B

12345678910111213141516171819202122232425262728
  1. targets:
  2. $default:
  3. builders:
  4. router_gen|router_gen_build:
  5. options: { 'write': false }
  6. enabled: true
  7. generate_for:
  8. exclude: ['**.g.dart']
  9. router_gen|table_builder:
  10. options: { 'write': true }
  11. enabled: true
  12. generate_for:
  13. exclude: [ '**.g.dart' ]
  14. builders:
  15. router_gen_build:
  16. import: "package:router_gen/builder.dart"
  17. builder_factories: ["generateRouterProvider"]
  18. build_extensions: {".dart": ['aa.dart']}
  19. auto_apply: dependents
  20. build_to: source
  21. runs_before: [ 'router_gen|table_builder' ]
  22. table_builder:
  23. import: "package:router_gen/builder.dart"
  24. builder_factories: [ "generateRouterTableProvider" ]
  25. build_extensions: { ".dart": [ 'route.dart' ] }
  26. auto_apply: dependents
  27. build_to: source