forked from Mr-Pepe/syncable
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
32 lines (26 loc) · 927 Bytes
/
justfile
File metadata and controls
32 lines (26 loc) · 927 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
_default:
@just --list
# Install the project dependencies
get-dependencies:
dart pub get
# Analyze the project
lint:
dart format --set-exit-if-changed .
dart analyze .
sqlfluff lint
# Generate test entrypoint
generate-test-entrypoints:
dart run tool/generate_test_entrypoints.dart
dart format test/_test.dart
# Runs all tests (with coverage)
test: generate-test-entrypoints start-supabase
supabase db test
dart test test/_test.dart --test-randomize-ordering-seed=random --coverage coverage
dart run coverage:format_coverage --lcov --report-on lib --check-ignore -i coverage/test/_test.dart.vm.json -o coverage/lcov.info
# Start Supabase for local development or testing
start-supabase:
supabase start -x=storage-api,imgproxy,mailpit,logflare,vector,edge-runtime
# Generate code
generate-code:
dart run build_runner build --delete-conflicting-outputs
dart format test/utils/test_mocks.mocks.dart