slang_build_runner 2.5.0 copy "slang_build_runner: ^2.5.0" to clipboard
slang_build_runner: ^2.5.0 copied to clipboard

outdated

build_runner integration for slang

slang_build_runner #

build_runner support for slang.

Useful if you want to combine multiple code generators.

This library ensures that slang is recognized by build_runner.

# pubspec.yaml
dependencies:
  slang: <version>

dev_dependencies:
  build_runner: <version>
  slang_build_runner: <version>

Make sure to use build.yaml instead of slang.yaml.

# build.yaml
targets:
  $default:
    builders:
      slang_build_runner:
        options:
          base_locale: en

The generate command:

flutter pub run build_runner build --delete-conflicting-outputs