-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathpubspec.yaml
More file actions
111 lines (111 loc) · 3.54 KB
/
Copy pathpubspec.yaml
File metadata and controls
111 lines (111 loc) · 3.54 KB
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: eqmonitor_workspace
description: The workspace for the EQMonitor project.
environment:
sdk: ^3.14.0-29.0.dev
flutter: ^3.47.0-1.0.pre-97
workspace:
- app
# ignore: path_does_not_exist
- packages/*
- packages/eqmonitor_map/example
# ignore: path_does_not_exist
- tools/*
dependencies:
melos: ^7.4.0
dev_dependencies:
eqmonitor_lints:
path: packages/eqmonitor_lints
melos:
repository: https://github.com/YumNumm/EQMonitor
command:
version:
linkToCommits: true
bootstrap:
runPubGetInParallel: false
environment:
sdk: ^3.14.0-29.0.dev
flutter: ^3.47.0-1.0.pre-97
scripts:
analyze:
run: |
dart run melos exec -c 1 -- \
dart analyze . --fatal-infos
description: |
Run `dart analyze` in all packages.
- Note: you can also rely on your IDEs Dart Analysis / Issues window.
- Uses `dart run melos exec` (not a bare `melos` call) so this script
works whether melos is globally activated or not (e.g. via
`dart run melos run analyze` without `dart pub global activate melos`).
generate:
run: melos run generate:dart && melos run generate:flutter
description: Build all generated files for Dart & Flutter packages in this project.
rebuild:
description: build_runner を使用してコードを生成します。
run: dart run build_runner build -d
exec:
orderDependents: true
packageFilters:
dependsOn: build_runner
upgrade:
description: dart pub のバージョンアップを実施します。
run: dart pub upgrade
exec:
concurrency: 1
orderDependents: true
upgrade:major:
description: dart pub のメジャーバージョンアップを実施します。
run: dart pub upgrade --major-versions
exec:
concurrency: 1
orderDependents: true
clean-all:
run: melos clean && melos exec "flutter clean"
# dependsOn で or 条件で指定することができないため
# スクリプトを Flutter と Dart に分けている
test:
description: すべてのパッケージのテストを実行します。
steps:
- test:flutter
- test:dart
test:flutter:
description: Flutter パッケージのテストを実行します。
run: flutter test
exec:
concurrency: 1
packageFilters:
dependsOn: flutter_test
dirExists: test
test:dart:
description: Dart パッケージのテストを実行します。
run: dart test
exec:
concurrency: 1
packageFilters:
dependsOn: test
dirExists: test
# dependsOn で or 条件で指定することができないため
# スクリプトを Flutter と Dart に分けている
report:test:
description: すべてのパッケージのテストレポートを生成します。
steps:
- report:test:flutter
- report:test:dart
report:test:flutter:
description: Flutter パッケージのテストレポートを生成します。
run: flutter test --no-pub --machine > test_report.log
exec:
concurrency: 1
packageFilters:
dependsOn: flutter_test
dirExists: test
report:test:dart:
description: Dart パッケージのテストレポートを生成します。
run: dart test --file-reporter="json:test_report.log"
exec:
concurrency: 1
packageFilters:
dependsOn: test
dirExists: test
ide:
intellij:
enabled: false