-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathmelos.yaml
57 lines (48 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
54
55
56
57
name: atproto
command:
bootstrap:
usePubspecOverrides: true
packages:
- website/**
- packages/**
- examples/**
scripts:
setup:
run: |
melos get
melos build
description: Set up the atproto.dart project when cloned. Run `dart pub get` and `dart run build_runner build` in all Dart packages.
get:
run: melos exec -c 20 -- \
dart pub get
description: Run `dart pub get` command in all packages.
analyze:
run: |
melos exec -c 20 -- \
flutter analyze .
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
fmt:
run: |
melos exec -c 20 -- dart format .
melos exec --depends-on="import_sorter" -c 20 -- dart run import_sorter:main
description: Run `dart format` and `dart run import_sorter:main` in all packages.
build:
run: |
melos exec --depends-on="build_runner" -c 20 -- \
dart run build_runner build clean
melos exec --depends-on="build_runner" -c 1 -- \
dart run build_runner build --delete-conflicting-outputs
description: Run `dart run build_runner build` in all packages.
test:
run: melos exec -c 20 --fail-fast -- "\$MELOS_ROOT_PATH/scripts/coverage.sh"
description: Run all Dart tests in this project.
flutter: false
dir-exists: test
publish_all:
run: |
melos publish
melos publish --no-dry-run --git-tag-version
git push origin --tags
description: Publish all packages, create git tags and push them to origin.