forked from invertase/melos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
53 lines (44 loc) · 1.55 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
name: Melos
repository: https://github.com/invertase/melos
packages:
- packages/**
- .
command:
version:
# Generate commit links in package changelogs.
linkToCommits: true
# Only allow versioning to happen on main branch.
branch: main
# Additionally build a changelog at the root of the workspace.
workspaceChangelog: true
ide:
intellij: true
scripts:
analyze:
run: melos exec -c 1 -- "dart analyze . --fatal-infos"
description: Run dart analyzer in a specific package.
select-package:
ignore:
- "*monorepo*"
test:
description: Run tests in a specific package.
# TODO(Salakar) 'dart pub get' is necessary for the 'melos' package as we're using it on itself
run: melos exec --concurrency=1 -- "dart pub get && dart pub run test --reporter expanded"
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:
run: melos exec flutter format . --set-exit-if-changed
description: Run `flutter format` checks for all packages.
version: dart run scripts/generate_version.dart
activate:
description: Activate the local version of melos for development.
run: dart pub global activate --source="path" . --executable="melos" --overwrite
activate:pub:
description: Activate the published version of melos.
run: dart pub global activate melos