forked from FlutterGen/flutter_gen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmelos.yaml
79 lines (65 loc) · 1.75 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: FlutterGen
packages:
- packages/**
- example/*
- example_resources/*
ide:
intellij: true
vscode: true
command:
bootstrap:
# NOTE: https://github.com/invertase/melos/issues/117#issuecomment-1125224468
# A workaround is to run melos clean before melos publish,
# which removes pubspec_overrides.yamls if they were generated by Melos.
usePubspecOverrides: true
scripts:
pub:upgrade:
run: |
melos exec -- flutter pub upgrade
analyze: dart analyze
format: bash ./scripts/dartfmt.sh
gen:build_runner:
run: |
melos exec -- dart pub run build_runner build --delete-conflicting-outputs
select-package:
ignore:
- example
- example_resources
depends-on: 'build_runner'
build:
run: |
melos exec -- flutter build apk
select-package:
scope: example
example:command:
run: |
melos exec \
-- dart ../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml
select-package:
scope: example
example:build_runner:
run: |
melos exec \
-- flutter pub run build_runner build --delete-conflicting-outputs
select-package:
scope: example
example:res:command:
run: |
melos exec \
-- dart ../packages/command/bin/flutter_gen_command.dart --config pubspec.yaml
select-package:
scope: example_resources
example:res:build_runner:
run: |
melos exec \
-- flutter pub run build_runner build --delete-conflicting-outputs
select-package:
scope: example_resources
unit:test:
run: melos exec -- dart test
select-package:
dir-exists: test
coverage:
run: |
bash ./scripts/coverage.sh packages/core
bash ./scripts/codecov.sh ${CODECOV_TOKEN}