2025-05-02 11:41:18 +03:00
|
|
|
name: cherrypick_workspace
|
|
|
|
|
|
|
|
|
|
sdkPath: .fvm/flutter_sdk
|
|
|
|
|
|
|
|
|
|
packages:
|
2025-08-07 10:34:50 +03:00
|
|
|
- benchmark_di
|
2025-05-02 11:42:32 +03:00
|
|
|
- cherrypick
|
2025-05-02 11:53:29 +03:00
|
|
|
- cherrypick_flutter
|
2025-05-16 09:30:30 +03:00
|
|
|
- cherrypick_annotations
|
|
|
|
|
- cherrypick_generator
|
2025-08-11 23:26:13 +03:00
|
|
|
- talker_cherrypick_logger
|
2025-05-16 17:58:02 +03:00
|
|
|
- examples/client_app
|
|
|
|
|
- examples/postly
|
2025-05-02 11:53:29 +03:00
|
|
|
|
|
|
|
|
scripts:
|
2025-09-09 12:45:12 +03:00
|
|
|
clean_all:
|
|
|
|
|
run: |
|
|
|
|
|
melos clean
|
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 17:27:20 +03:00
|
|
|
melos exec -- rm -rf lib/**.g.dart lib/**/**.g.dart lib/generated/
|
|
|
|
|
melos exec -- rm -rf .dart_tool build pubspec_overrides.yaml
|
2025-09-09 12:45:12 +03:00
|
|
|
description: |
|
|
|
|
|
Очищает build артефакты flutter и сгенерированный код во всех пакетах.
|
|
|
|
|
|
2025-09-09 08:53:50 +03:00
|
|
|
all:
|
|
|
|
|
steps:
|
|
|
|
|
- codegen
|
|
|
|
|
- analyze
|
|
|
|
|
- format
|
|
|
|
|
- test
|
|
|
|
|
description: Run all steps.
|
|
|
|
|
|
|
|
|
|
lint:all:
|
|
|
|
|
steps:
|
|
|
|
|
- analyze
|
|
|
|
|
- format
|
|
|
|
|
description: Run all static analysis checks.
|
|
|
|
|
|
2025-05-02 11:53:29 +03:00
|
|
|
analyze:
|
2025-05-13 23:12:17 +03:00
|
|
|
exec: dart analyze
|
|
|
|
|
|
2025-05-02 11:53:29 +03:00
|
|
|
format:
|
2025-05-16 09:30:30 +03:00
|
|
|
exec: dart format lib
|
2025-05-13 23:12:17 +03:00
|
|
|
|
|
|
|
|
test:
|
2025-09-09 08:53:50 +03:00
|
|
|
steps:
|
|
|
|
|
- test:dart
|
|
|
|
|
- test:flutter
|
|
|
|
|
description: Run all tests.
|
2025-06-11 18:34:19 +03:00
|
|
|
|
|
|
|
|
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"]
|
2025-05-18 16:41:48 +03:00
|
|
|
|
|
|
|
|
codegen:
|
|
|
|
|
run: |
|
|
|
|
|
melos exec --scope="postly" -- dart run build_runner build --delete-conflicting-outputs
|
|
|
|
|
|
2025-05-22 23:50:55 +03:00
|
|
|
outdated:
|
|
|
|
|
exec: dart pub outdated
|
|
|
|
|
|
2025-05-16 09:30:30 +03:00
|
|
|
upgrade:
|
2025-05-22 23:50:55 +03:00
|
|
|
exec: dart pub upgrade --major-versions
|
2025-05-16 09:30:30 +03:00
|
|
|
|
|
|
|
|
drop:
|
2025-06-11 18:34:19 +03:00
|
|
|
exec: flutter clean
|