Repository navigation
Expand file tree
/
Copy pathpubspec.yaml
More file actions
103 lines (85 loc) · 2.8 KB
/
Copy pathpubspec.yaml
File metadata and controls
103 lines (85 loc) · 2.8 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
name: flutter_base_workspace
description: Workspace root (pub workspace + Melos). Packages live in app/, modules/* and tool/*.
publish_to: "none"
version: 0.0.1+1
environment:
sdk: ^3.13.0
flutter: ">=3.47.0"
workspace:
- app
- modules/common
- modules/data
- modules/domain
- tool/project_init
dev_dependencies:
melos: ^8.9.0
melos:
# FVM links the SDK pinned in .fvmrc here. CI sets MELOS_SDK_PATH=auto to use
# the SDK installed by the workflow instead.
sdkPath: .fvm/flutter_sdk
command:
run:
# Scripts with packageFilters run in every matching package without
# prompting for a selection.
noSelect: true
# Scripts named after built-in commands (analyze, format, test) shadow them,
# so `melos analyze` and `melos run analyze` run the same script. They call
# dart/flutter directly: delegating to the built-in would recurse.
scripts:
init:
description: Turn this template into a project. Prompts for the app name, package name and bundle ID.
run: dart tool/project_init/bin/init.dart
stdio: inherit
analyze:
description: Static analysis of every package; infos are fatal.
exec: dart analyze . --fatal-infos
format:
description: Format every package and fail if any file changed (the CI check).
exec: dart format --set-exit-if-changed .
test:
description: Run the tests of every package that has a test/ directory.
dependsOn:
- test:flutter
- test:dart
test:flutter:
private: true
exec: flutter test
packageFilters:
flutter: true
dirExists: test
test:dart:
private: true
exec: dart test
packageFilters:
flutter: false
dirExists: test
verify:
description: Everything CI checks - format, analyze and test.
dependsOn:
- format
- analyze
- test
lint:all:
description: Format and analyze. Kept for existing workflows; prefer verify.
dependsOn:
- format
- analyze
gen:l10n:
description: Regenerate the localization code from the .arb files.
exec: dart run intl_utils:generate && dart format lib/presentation/resources/locale/generated
packageFilters:
fileExists: lib/presentation/resources/locale/intl_en.arb
pub:runner:
description: Run build_runner in the packages that depend on it.
exec:
command: dart run build_runner build --delete-conflicting-outputs
orderDependents: true
packageFilters:
dependsOn: build_runner
run:web:
description: Run the app (dev flavor) in Chrome.
run: cd app && flutter run -t lib/main/env/main_dev.dart --dart-define-from-file=env/.dev -d chrome
stdio: inherit
doctor:
description: Run flutter doctor.
run: flutter doctor