-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpubspec.yaml
More file actions
75 lines (60 loc) · 1.65 KB
/
pubspec.yaml
File metadata and controls
75 lines (60 loc) · 1.65 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: booking
environment:
sdk: ^3.11.1
dev_dependencies:
melos: ^7.4.0
workspace:
- apps/*
- packages/*
melos:
scripts:
install:
description: Get all dependencies.
exec: melos bootstrap
get:
description: Get all dependencies.
exec: dart pub get
analyze:
description: Run static analysis.
exec: dart analyze --fatal-infos
packageFilters:
dirExists: lib
fix:
description: Fix source code.
exec: dart fix --apply
format:
description: Format source code.
exec: dart format .
clean:
description: Clean all packages.
exec: flutter clean
test:backend:
description: Run backend tests.
exec: dart test
packageFilters:
scope: booking_backend
test:frontend:
description: Run frontend tests.
exec: flutter test
packageFilters:
scope: booking_frontend
test:models:
description: Run shared models tests.
exec: dart test
packageFilters:
scope: booking_models
test:utils:
description: Run shared utils tests.
exec: dart test
packageFilters:
scope: booking_utils
run:backend:
description: Start the Dart Frog dev server with Docker.
steps:
- melos exec --scope=booking_backend -- docker-compose up -d
- melos exec --scope=booking_backend -- dart_frog dev --port 8090
run:frontend:
description: Run frontend in web browser.
exec: flutter run -d chrome --flavor development --target lib/main_development.dart --web-hostname localhost --web-port 7357
packageFilters:
scope: booking_frontend