forked from flame-engine/forge2d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpubspec.yaml
More file actions
82 lines (67 loc) · 2.07 KB
/
pubspec.yaml
File metadata and controls
82 lines (67 loc) · 2.07 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
76
77
78
79
80
81
82
name: forge2d_workspace
repository: https://github.com/flame-engine/forge2d
workspace:
- packages/benchmark
- packages/forge2d
- packages/forge2d/example
environment:
sdk: ">=3.8.0 <4.0.0"
dev_dependencies:
melos: ^7.0.0-dev.9
melos:
command:
version:
# Only allow versioning to happen on main branch.
branch: main
# Generates a link to a prefilled GitHub release creation page.
releaseUrl: true
includeCommitId: true
linkToCommits: true
bootstrap:
environment:
sdk: ">=3.8.0 <4.0.0"
scripts:
lint:all:
run: melos run analyze && melos run format
description: Run all static analysis checks.
analyze:
run: |
melos exec -c 1 -- \
dart analyze --fatal-infos
description: Run `dart analyze` for all packages.
format:
run: melos exec dart format . --fix
description: Run `dart format` for all packages.
format-check:
run: melos exec dart format . --set-exit-if-changed
description: Run `dart format` checks for all packages.
dartdoc:
run: melos exec dart pub run dartdoc
description: Run dartdoc checks for all packages.
test:select:
run: melos exec -c 1 -- dart test
packageFilters:
dirExists: test
description: Run `dart test` for selected packages.
test:
run: melos run test:select --no-select
description: Run all tests in this project.
coverage:
run: |
melos exec -- dart test --coverage &&
melos exec -- genhtml coverage/lcov.info --output-directory=coverage/
packageFilters:
dirExists: test
description: Generate coverage for the selected package.
benchmark:
run: melos exec -- dart web/bench2d.dart
packageFilters:
scope: forge2d_benchmark
benchmark_serve:
run: melos exec -- dart pub global run webdev serve --release
packageFilters:
scope: forge2d_benchmark
example:
run: melos exec -- dart pub global run webdev serve --release
packageFilters:
scope: forge2d_examples