name: flutter_timetable

packages:
  - packages/**

command:
  version:
    branch: master

scripts:
  lint:all:
    run: dart run melos run analyze && dart run melos run format-check
    description: Run all static analysis checks.

  get:
    run: |
      melos exec -c 1 -- "flutter pub get"
      melos exec --scope="*example*" -c 1 -- "flutter pub get"

  upgrade:
    run: melos exec -c 1 -- "flutter pub upgrade"

  create:
    run: melos exec --scope="*example*" -c 1 -- "flutter create ."

  analyze:
    run: |
      dart run melos exec -c 1 -- \
        flutter analyze --fatal-infos
    description: Run `flutter analyze` for all packages.

  format:
    run: dart run melos exec dart format .
    description: Run `dart format` for all packages.

  format-check:
    run: dart run melos exec dart format . --set-exit-if-changed
    description: Run `dart format` checks for all packages.
