-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (26 loc) · 894 Bytes
/
Makefile
File metadata and controls
36 lines (26 loc) · 894 Bytes
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
.PHONY: pub_get build_runner format pretty test open_coverage run_tests_with_coverage fix
pub_get:
@echo "👟 Running Flutter pub get..."
@flutter pub get
build_runner:
@echo "🛠️ Running build_runner..."
@dart run build_runner build --delete-conflicting-outputs
format_lib:
@echo "🦋📖 Formatting code in lib directory..."
@dart format lib
format: format_lib format_tests
format_tests:
@echo "🦋🤖 Formatting code in tests directory..."
@dart format test
run_tests_with_coverage:
@echo "✏️🤖 Running tests with coverage..."
@dart pub global run full_coverage
@flutter test --coverage
@lcov --remove coverage/lcov.info '**/*.g.dart' -o coverage/lcov.info
@genhtml coverage/lcov.info -o coverage/html
open_coverage:
@open coverage/html/index.html
test: run_tests_with_coverage open_coverage
pretty: pub_get build_runner format
fix:
@dart fix --apply