-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjustfile
46 lines (38 loc) · 959 Bytes
/
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
default:
just --list
# Show all commands and info
help:
just --list
# Runs example app
run:
cd example && fvm flutter run
# Clean project
clean:
fvm flutter clean
cd example && fvm flutter clean
# Install deps
install-deps:
fvm flutter pub get
cd example && fvm flutter pub get
# Clean and get
clean-and-get:
just clean
just install-deps
# 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
# Generate release with number
release number:
git flow release start {{number}}
fvm flutter pub run index_generator
npm run release
just install-deps
git add .
git commit -m "chore(release): {{number}}"
# Initial project setup
setup:
fvm flutter precache --ios
just clean-and-get