Skip to content

Instantly share code, notes, and snippets.

@NijatTagizada
Last active December 30, 2022 09:48
Show Gist options
  • Save NijatTagizada/0605b764402bf9d27512c1602356ddeb to your computer and use it in GitHub Desktop.
Save NijatTagizada/0605b764402bf9d27512c1602356ddeb to your computer and use it in GitHub Desktop.
Flutter melos config and scripts
name: melos_demo_app
packages:
- packages/core/**
- packages/events/**
- '*'
scripts:
test:selective_unit_test:
run: melos exec --dir-exists="test" --fail-fast -- flutter test --no-pub --coverage
description: Run Flutter tests for a specific package in this project.
select-package:
flutter: true
dir-exists: test
test:
run: melos run test:selective_unit_test --no-select
description: Run all Flutter tests in this project.
analyze:
run: melos exec -- flutter analyze .
description: Run `dart analyze` in all packages.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment