forked from davidmigloz/langchain_dart
-
Notifications
You must be signed in to change notification settings - Fork 0
/
melos.yaml
95 lines (79 loc) · 2.71 KB
/
melos.yaml
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
83
84
85
86
87
88
89
90
91
92
93
94
95
name: langchain
repository: https://github.com/davidmigloz/langchain_dart
packages:
- examples/*
- packages/*
command:
version:
linkToCommits: true
workspaceChangelog: true
releaseUrl: true
branch: main
changelogs:
- path: CHANGELOG.md
description: |
Check out the #announcements channel in the [LangChain.dart Discord](https://discord.gg/x4qbhqecVR)
server for more details about each release.
packageFilters:
no-private: true
bootstrap:
usePubspecOverrides: true
scripts:
lint:
description: Run all static analysis checks
run: melos run format && melos run analyze
lint:diff:
description: Run all static analysis checks failing fast
run: melos run format:diff && melos run analyze:diff
format:
description: Format Dart files
run: melos exec -- "dart format --fix ."
format:diff:
description: Format Flutter files
run: melos exec --fail-fast -- "dart format --fix --set-exit-if-changed ."
packageFilters:
diff: origin/main...HEAD
analyze:
description: Run Flutter static analyzer
run: melos exec -- "flutter analyze ."
analyze:diff:
description: Run Flutter static analyzer
run: melos exec -- "flutter analyze ."
packageFilters:
diff: origin/main...HEAD
test:
run: melos run test:dart --no-select && melos run test:flutter --no-select
description: Run all Dart & Flutter tests in this project.
test:dart:
run: melos exec -c 1 --fail-fast -- "dart test test"
description: Run Dart tests for a specific package in this project.
packageFilters:
flutter: false
dirExists: test
test:flutter:
run: melos exec -c 1 --fail-fast -- "flutter test test"
description: Run Flutter tests for a specific package in this project.
packageFilters:
flutter: true
dirExists: test
test:diff:
exec: dart test test
description: Run all Dart tests for changed packages in this project.
packageFilters:
diff: origin/main...HEAD
flutter: false
dirExists: test
dep-outdated:
description: Checks which dependencies have newer versions available.
run: melos exec -c 1 -- "flutter pub outdated"
dep-upgrade:
description: Automatically upgrades package dependencies to the latest versions.
run: melos exec -c 1 -- "flutter pub upgrade --major-versions"
fix:
description: Run Dart/Flutter automated fixes
run: melos exec -c 1 -- "dart fix --apply"
codegen:
description: Run code generation using build_runner
run: melos exec -c 1 -- "flutter pub run build_runner build --delete-conflicting-outputs && dart format --fix ."
packageFilters:
dependsOn: "build_runner"