-
-
Notifications
You must be signed in to change notification settings - Fork 269
Expand file tree
/
Copy pathjustfile
More file actions
30 lines (23 loc) · 775 Bytes
/
justfile
File metadata and controls
30 lines (23 loc) · 775 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
intl_output_dir := "./lib/generated/intl/"
# Install dependencies
install:
flutter pub get
# Build OpenNutriTracker
build:
dart run build_runner build
# Format dart code (excludes lib/generated/ — those files are auto-generated with their own style)
format *OPTIONS:
dart format {{OPTIONS}} ./lib/core ./lib/features ./lib/l10n ./test
# Regenerate intl files
# Note: lib/generated/ files are maintained manually to avoid formatting churn from the generators
run_intl: format
# Check if intl files are correctly generated
check_intl:
git diff --exit-code {{intl_output_dir}}
git diff --exit-code lib/generated/l10n.dart
# Run tests
test:
flutter test
# Run CI checks
ci: install (format "--set-exit-if-changed") check_intl build && test
flutter analyze