-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathTaskfile.yml
70 lines (58 loc) · 1.69 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
version: '3'
env:
CONSOLE_ADDR: 192.168.0.161:5000 # can be overriden in .env
dotenv: [".env"]
includes:
# BOTW RDB App
rdb:
taskfile: ./app/rdb
dir: ./app/rdb
# Recipe Dumper Mod
console:
taskfile: ./dump/console
dir: ./dump/console
generated:
taskfile: ./packages/generated
dir: ./packages/generated
internal: true
known-good:
aliases: [kg]
taskfile: ./packages/known-good
dir: ./packages/known-good
tasks:
install:
desc: Install dependencies
cmds:
- magoo install
# TODO: pnpm
research:
desc: Reproduce research (--clean to re-download data)
dir: research
aliases: [re]
cmds:
- python main.py {{.CLI_ARGS}}
bfcrc32:
desc: Bruteforce CRC32 (-- <ARGS>)
dir: research
cmds:
- cargo run --release --bin bfcrc32 -- {{.CLI_ARGS}}
# test:
# desc: Run tests
# deps: [rdb:test, test-rs] TODO: fix rdb:test automatically running in watch mode
test-rs:
cmds:
- task: generated:test
- cargo test --package botw-recipe-data --all-targets --all-features --release
check:
vars:
CLIPPY_FLAGS: -D warnings -D clippy::todo -A clippy::comparison-chain
cmds:
- cargo clippy --package botw-recipe-generated --all-features --all-targets -- {{.CLIPPY_FLAGS}}
- cargo clippy --package botw-recipe-data --all-targets -- {{.CLIPPY_FLAGS}}
- cargo clippy --package botw-recipe-data-utils --all-targets -- {{.CLIPPY_FLAGS}}
- cargo clippy --package botw-recipe-database --all-targets -- {{.CLIPPY_FLAGS}}
- cargo fmt --check
fix:
desc: Fix code issues in .rs
cmds:
- cargo fmt --all