-
Notifications
You must be signed in to change notification settings - Fork 18
/
melos.yaml
43 lines (36 loc) · 1.09 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
name: Spec
repository: https://github.com/invertase/spec
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
scripts:
analyze:
run: dart analyze --fatal-infos --fatal-warnings .
description: Run Dart analyzer.
format:
run: dart format -o write .
description: Run Dart formatter.
format-check:
run: melos exec dart format . --set-exit-if-changed
description: Run `dart format` checks for all packages.
build_runner:build:
run: |
melos exec -- \
"dart pub run build_runner build --delete-conflicting-outputs"
description: Run a build_runner build in the example apps.
select-package:
depends-on: "build_runner"
test:
run: melos exec -- "dart test"
description: Run Dart tests.
select-package:
dir-exists: "test"
depends-on: "test"
postbootstrap: melos run build_runner:build --no-select