Files
cherrypick/melos.yaml
Sergey Penkovsky eb6d786600 refactor(generator): migrate cherrypick_generator to analyzer element2 API
- Fully migrated core cherrypick_generator and submodules to new analyzer element2 system:
  - Updated all GeneratorForAnnotation overrides to use Element2, ClassElement2, MethodElement2, FieldElement2 and new annotation/metadata access patterns.
  - Migrated signature and bodies for helpers, parsers, annotation validators, meta utils, and type parsers.
  - Fixed tests to use readerWriter instead of deprecated reader argument.
  - Refactored usage of now-absent 'metadata', 'parameters', 'fields', 'methods', 'source', and similar members to use correct *.firstFragment.* or API alternatives.
  - Cleaned up old imports and unused code.

test(generator): update generator integration tests

- Updated test calls to use correct TestReaderWriter type and bring test infra in line with current build_runner/testing API.

build: update dependencies and pubspec to support latest analyzer/build ecosystem

- Raised Dart SDK and package constraints as required for generated code and codegen plugins.
- Updated pubspecs in root/examples as needed by build warnings.

docs: add plots and assets (new files)

BREAKING CHANGE:
- Requires Dart 3.8+ and analyzer that supports element2.
- All downstream codegen/tests depending on Element API must migrate to Element2 signatures and data model.
2025-09-09 18:08:39 +03:00

74 lines
1.5 KiB
YAML

name: cherrypick_workspace
sdkPath: .fvm/flutter_sdk
packages:
- benchmark_di
- cherrypick
- cherrypick_flutter
- cherrypick_annotations
- cherrypick_generator
- talker_cherrypick_logger
- examples/client_app
- examples/postly
scripts:
clean_all:
run: |
melos clean
melos exec -- rm -rf lib/**.g.dart lib/**/**.g.dart lib/generated/
melos exec -- rm -rf .dart_tool build pubspec_overrides.yaml
description: |
Очищает build артефакты flutter и сгенерированный код во всех пакетах.
all:
steps:
- codegen
- analyze
- format
- test
description: Run all steps.
lint:all:
steps:
- analyze
- format
description: Run all static analysis checks.
analyze:
exec: dart analyze
format:
exec: dart format lib
test:
steps:
- test:dart
- test:flutter
description: Run all tests.
test:dart:
description: "Run tests for Dart packages only"
exec: dart test --reporter=compact
packageFilters:
scope: ["cherrypick", "cherrypick_annotations", "cherrypick_generator"]
test:flutter:
description: "Run tests for Flutter packages only"
exec: flutter test --reporter=compact
packageFilters:
scope: ["cherrypick_flutter"]
codegen:
run: |
melos exec --scope="postly" -- dart run build_runner build --delete-conflicting-outputs
outdated:
exec: dart pub outdated
upgrade:
exec: dart pub upgrade --major-versions
drop:
exec: flutter clean