-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathTaskfile.yml
74 lines (63 loc) · 1.75 KB
/
Taskfile.yml
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
# https://taskfile.dev
version: "3"
tasks:
prerequisites:
aliases: [pre]
desc: Installs some prerequisites.
cmds:
- cargo install flutter_rust_bridge_codegen
prerequisites-ts:
aliases: [prets]
desc: Installs ts prerequisites.
dir: ./ts-types/
cmds:
- npm ci
- npm run prepare
generate:
desc: Generates ts types and dart bindings.
aliases: [gen]
cmds:
- task: generate-types
- task: generate-dart-bindings
generate-types:
desc: Generates the ts types for cal. Cargo needs to be installed.
aliases: [gents]
dir: ./ts-types/
cmds:
- pwsh Generate-Types.ps1
generate-dart-bindings:
desc: Generates the dart bindings. Cargo and rust need to be installed.
aliases: [gendt]
dir: ./flutter_plugin/
cmds:
- flutter_rust_bridge_codegen generate --rust-preamble "use std::future::Future; use std::pin::Pin; use crypto_layer::common::config::DynFuture;"
test:
desc: Execute non interactive tests.
cmds:
- task: test-cal
- task: test-dart-bindings
- task: test-ts-types
test-cal:
desc: Execute unit tests for the given platform. (currently only software on desktop)
aliases: [testrs]
cmds:
- cargo test -F software
test-ts-types:
desc: Tests if the ts types still compile. Npm needs to be installed.
aliases: [testts]
dir: ./ts-types/
cmds:
- npm run build
- npm run check
test-dart-bindings:
desc: Test partially generated dart bindings.
aliases: [testdt]
dir: ./flutter_plugin/rust/
cmds:
- cargo c
run-flutter-app:
desc: Builds and runs the flutter app. Flutter must be installed.
aliases: [flutter]
dir: ./flutter_app/
cmds:
- flutter run