-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
63 lines (54 loc) · 1.41 KB
/
melos.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: sloth
repository: https://github.com/ynnob/sloth
ide:
intellij:
enabled: false
packages:
- .
- packages/*
scripts:
upgrade:
run: dart pub upgrade
exec:
concurrency: 1
build:
run: dart run build_runner build --delete-conflicting-outputs
exec:
concurrency: 1
select-package:
depends-on: build_runner
analyze:
run: dart analyze . --fatal-infos
exec:
concurrency: 1
description: Run dart analyzer in a specific package.
select-package:
ignore:
- "*monorepo*"
test:
description: Run tests in a specific package.
run: dart test --reporter expanded
exec:
concurrency: 1
select-package:
dir-exists:
- "test/"
# This tells Melos tests to ignore env variables passed to tests from `melos run test`
# as they could change the behaviour of how tests filter packages.
env:
MELOS_TEST: true
format: dart format -o write .
format-check:
exec: flutter format . --set-exit-if-changed
description: Run `flutter format` checks for all packages.
command:
version:
# Generate commit links in package changelogs.
linkToCommits: true
# Only allow versioning to happen on main branch.
branch: master
# Additionally build a changelog at the root of the workspace.
workspaceChangelog: true
# activate new bootstrapping mechanism
bootstrap:
usePubspecOverrides: true