forked from fujidaiti/smooth_sheets
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.toml
47 lines (41 loc) · 950 Bytes
/
Makefile.toml
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
[config]
skip_core_tasks = true
[env]
PROJECT_ROOT = { script = ["pwd"] }
SCRIPTS_DIR = "${PROJECT_ROOT}/scripts"
[tasks.flutter-build]
script = '''
flutter clean
flutter pub get
'''
[tasks.flutter-analyze]
script = '''
echo "Running dart format"
dart format . -o none --set-exit-if-changed
echo "Running dart analyze"
dart analyze
echo "Running disallowed patterns check"
bash $SCRIPTS_DIR/pattern_checker.sh "*.dart" "--" "debugPrint"
'''
[tasks.flutter-check]
run_task = { name = ['flutter-build', 'flutter-analyze'] }
[tasks.build-all]
script_runner = "@duckscript"
script = '''
echo "Building package"
cd ./package
cm_run_task flutter-build
echo "Building cookbook"
cd ../cookbook
cm_run_task flutter-build
'''
[tasks.check-all]
script_runner = "@duckscript"
script = '''
echo "Running flutter-check for package"
cd ./package
cm_run_task flutter-check
echo "Running flutter-check for cookbook"
cd ../cookbook
cm_run_task flutter-check
'''