Dev workflow – Contentstack Dart SDK
When to use
- Starting work in this repository or onboarding
- Before opening a PR (verify analyze, tests, format)
- After editing JSON-serializable models or
part files
Instructions
Dependencies and codegen
- Install deps:
dart pub get
- If you change files that use
json_serializable / part '*.g.dart', run:
dart run build_runner build --delete-conflicting-outputs
Generated files are excluded from manual lint in analysis_options.yaml
Quality gates
- Static analysis:
dart analyze (rules in analysis_options.yaml)
- Tests:
dart test
- Optional format check:
dart format .
Branches and automation
Package docs
- HTML API docs:
dartdoc is listed in pubspec.yaml; generate when documenting public API changes
References