-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathmelos.yaml
70 lines (60 loc) · 1.89 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
name: stadata_workspace
repository: https://github.com/ryanaidilp/stadata_flutter_sdk
packages:
- app/*
- packages/*
command:
version:
changelogs:
- path: CHANGELOG.md
packageFilters:
scope: none
bootstrap:
hooks:
post: melos run build
clean:
hooks:
post: |
melos exec --flutter --concurrency=3 -- "flutter clean"
melos run build:clean
scripts:
get:select:
run: melos exec -- "flutter pub get"
description: "Run `flutter pub get` in selected package."
packageFilters:
dependsOn: flutter
get:
run: melos run get:select --no-select
description: "Run `flutter pub get` in all packages that depends on Flutter."
build:
run: melos run build:select --no-select
description: "Run build runer in all packages"
build:select:
run: melos exec -- "dart run build_runner build -d"
description: "Run build_runner in selected package that depends on build_runner."
packageFilters:
dependsOn:
- "build_runner"
build:clean:
run: melos run build:clean:select --no-select
description: "Run build runner clean in all packages that depend on it."
build:clean:select:
run: melos exec -- "dart run build_runner clean"
description: "Run build runner clean in selected package that depends on build_runner."
packageFilters:
dependsOn:
- "build_runner"
fix:
run: melos run fix:select --no-select
description: "Fix syntax violation in all packages."
fix:select:
run: melos exec -- "dart fix --apply"
description: "Fix syntax violation in selected package."
upgrade:select:
run: melos exec -- "flutter pub upgrade"
description: "Run `flutter pub upgrade` in selected package."
packageFilters:
dependsOn: "flutter"
upgrade:
run: melos run upgrade:select --no-select
description: "Run `flutter pub upgrade` in all packages."