-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
50 lines (48 loc) · 1.12 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
# https://taskfile.dev
version: '3'
tasks:
default:
deps:
- task: check
- task: build
build:
- cargo build --release --target=wasm32-unknown-unknown
check:
deps:
- task: test
- task: lint
test:
cmds:
- cargo test
fmt:
cmds:
- cargo fmt
- dprint fmt
- git ls-files '*.nix' | xargs nix fmt
lint:
cmds:
- cargo clippy
- dprint check
- typos . .github .vscode
# nix fmt doesn't have check: https://github.com/NixOS/nix/issues/6918
- git ls-files '*.nix' | xargs nixfmt --check
dogfooding: # Intentionally failing
deps:
- task: build
cmds:
- dprint check --config=dprint-dogfooding.json --plugins=./target/wasm32-unknown-unknown/release/dprint_plugin_typstyle.wasm
deps:
cmds:
- rustc --version
- cargo --version
- rust-analyzer --version
- clippy-driver --version
- rustfmt --version
- dprint --version
- nix --version
- nil --version
- nixfmt --version
- task --version
- typos --version
- typst --version
- typstyle --version