Skip to content

Commit

Permalink
Use runPubGetOffline
Browse files Browse the repository at this point in the history
  • Loading branch information
nielsenko committed Jun 6, 2024
1 parent be2738c commit a12009e
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions melos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ packages:

command:
bootstrap:
# To benefit most from the cached pub-cache on CI we want to use
# `flutter pub get --offline` when running `melos bootstrap`.
# Unfortunately, melos doesn't support '--offline' as a cli argument yet
# (see https://github.com/invertase/melos/issues/714).
#
# Instead we set `runPubGetOffline` to `true` to achieve the same effect.
# This has the downside of not updating deps when running
# 'melos bootstrap' locally as well, but that can easily by mitigated
# by running: `melos exec -- flutter pub get`.
runPubGetOffline: true
environment:
sdk: ^3.3.0
flutter: ^3.19.0
Expand Down Expand Up @@ -40,7 +50,7 @@ scripts:
- build:native
- build:binding
- build:dart

build:native:
exec: dev build
packageFilters:
Expand Down Expand Up @@ -121,7 +131,7 @@ scripts:
run: >-
find lib test integration_test -name '*.dart' -not -name '*.g.dart' -not -name '*.realm.dart' -not -name 'realm_bindings.dart' 2> /dev/null
| xargs dart format --fix --line-length 160
exec:
exec:
concurrency: 1 # only one project at a time to keep output sane

upgrade:
Expand All @@ -143,7 +153,7 @@ scripts:
run: >-
find lib test integration_test -name '*.dart' -not -name '*.g.dart' -not -name '*.realm.dart' -not -name 'realm_bindings.dart' 2> /dev/null
| xargs dart format --fix --line-length 160 --output none --set-exit-if-changed
exec:
exec:
concurrency: 1 # only one project at a time to keep output sane

lint:pana:
Expand All @@ -152,7 +162,7 @@ scripts:
concurrency: 1 # only one project at a time to keep output sane
packageFilters:
published: true

coverage:
description: Generate, check and render coverage.
steps:
Expand Down Expand Up @@ -223,4 +233,3 @@ scripts:
- coverage
- analyze
- lint

0 comments on commit a12009e

Please sign in to comment.