voo_env_generator 0.1.0
voo_env_generator: ^0.1.0 copied to clipboard
Code generator for voo_env package. Generates typed, optionally obfuscated environment variable classes at build time.
voo_env_generator #
Code generator for the voo_env package. This package should be added as a dev_dependency.
Installation #
dependencies:
voo_env: ^0.1.0
dev_dependencies:
voo_env_generator: ^0.1.0
build_runner: ^2.4.0
Usage #
See the voo_env package for complete documentation.
Quick Start #
- Create a
.envfile in your project root - Create an env class with
@VooEnvannotation - Run
dart run build_runner build
Build Configuration #
You can configure the builder via build.yaml:
targets:
$default:
builders:
voo_env_generator|voo_env:
options:
path: .env.production
License #
MIT License - see LICENSE file for details.