-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
40 lines (34 loc) · 1.31 KB
/
Copy pathjustfile
File metadata and controls
40 lines (34 loc) · 1.31 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
#!/usr/bin/env just --justfile
recipe := just_executable() + " --justfile=" + justfile()
ver dir='.':
cd {{dir}} && echo $(if command -v yq >/dev/null; then yq -r '.version' {{dir}}/pubspec.yaml; else grep -E '^\s*version:' pubspec.yaml | head -n1 | sed -E 's/^\s*version:\s*"?([^"#]+)"?\s*(#.*)?$/\1/'; fi)
pg dir: # Pubget
cd {{dir}} && fvm dart pub get
br dir: # Build runner
cd {{dir}} && fvm dart pub get
cd {{dir}} && fvm dart run build_runner build --delete-conflicting-outputs
cl_br dir: # Clean build runner
cd {{dir}} && fvm dart run build_runner clean
cl dir: # Flutter clean
cd {{dir}} && fvm flutter clean
license year +dirs:
reuse annotate -c "Karim \"nogipx\" Mamatkazin <nogipx@gmail.com>" -l "MIT" -y {{year}} -r {{dirs}}
test:
fvm dart test --concurrency=1
gen:
{{recipe}} br .
get:
{{recipe}} pg .
prepare:
fvm dart fix --apply
fvm dart format -l 80 .
{{recipe}} license 2026 lib example test
rm -rf coverage
fvm dart test test/ --coverage=coverage --reporter=compact --concurrency=5
fvm dart pub global run coverage:format_coverage --lcov --in=coverage --out=coverage/lcov.info --report-on=lib
genhtml coverage/lcov.info -o coverage/html
open coverage/html/index.html
dry:
fvm dart pub publish --dry-run
publish:
fvm dart pub publish