-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathmise.toml
33 lines (30 loc) · 1.05 KB
/
mise.toml
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
[tasks.lint]
description = "Lint"
dir = "push"
run = [
'dart format --set-exit-if-changed .',
'swiftformat --lint --exclude example/macos/Flutter/GeneratedPluginRegistrant.swift .',
]
[tasks.format]
description = "Format"
dir = "push"
run = [
# https://dart.dev/tools/dart-format
'dart format .', # https://github.com/nicklockwood/SwiftFormat, not https://github.com/apple/swift-format
'swiftformat --exclude example/macos/Flutter/GeneratedPluginRegistrant.swift .', # TODO Use ktlint?
]
[tasks.codegen]
description = "Generate code"
dir = "push"
run = [
'dart run pigeon --input pigeons/push_api.dart',
]
# TO support macOS, we run codegen for all platforms (except iOS and macOS) twice so that we can run on iOS and macOS, but it's idempotent so it's okay.
# Ideally, Pigeon supports multiple paths for the same language (a swiftOut [array])
# 'dart run pigeon --input pigeons/push_api.dart --swift_out ./push/macos/Classes/serialization/PushApi.swift',
[tasks.publish]
description = "Publish to pub.dev"
dir = "push"
run = [
'flutter pub publish',
]