-
Notifications
You must be signed in to change notification settings - Fork 1
/
justfile
60 lines (47 loc) · 1.36 KB
/
justfile
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
default:
just --list
# Show all commands and info
help:
just --list
# Runs app
run flavor:
fvm flutter run lib/main_{{flavor}}.dart --flavor {{flavor}}
# Build ios
build-ios flavor:
fvm flutter build ipa lib/main_{{flavor}}.dart --flavor {{flavor}}
# Build android
build-android flavor:
fvm flutter build appbundle lib/main_{{flavor}}.dart --flavor {{flavor}}
# Codgen build
codegen:
fvm flutter pub run build_runner build --delete-conflicting-outputs
# Codegen watch
codegen-watch:
fvm flutter pub run build_runner watch --delete-conflicting-outputs
# Clean project
clean:
fvm flutter clean
# Install deps
install-deps:
fvm flutter pub get
# Clean and get
clean-and-get:
just clean
just install-deps
# Generate locales
locales:
fvm flutter pub run easy_localization:generate -S assets/translations -f keys -O lib/src/shared/presentation/i18n -o locale_keys.g.dart
# Test
# Note: on macOS you need to have lcov installed on your system (`brew install lcov`) to use this:
test:
fvm flutter test --coverage --test-randomize-ordering-seed random
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html
# e2e test
e2e-test flavor file deviceId:
fvm flutter test integration_test/{{flavor}}/{{file}}.dart --flavor {{flavor}} -d {{deviceId}}
# Initial project setup
setup:
just clean-and-get
just locales
just codegen