forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtasks.toml
More file actions
135 lines (108 loc) · 3.24 KB
/
Copy pathtasks.toml
File metadata and controls
135 lines (108 loc) · 3.24 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
# Copyright © SixtyFPS GmbH <info@slint.dev>
# SPDX-License-Identifier: GPL-3.0-only OR LicenseRef-Slint-Royalty-free-2.0 OR LicenseRef-Slint-Software-3.0
# Use https://mise.jdx.dev/schema/mise-task.json for validation.
### fixes
["fix:cpp:format"]
description = "Run clang format fix on all C++ files"
run = '''fd '.*\.(h|H|hpp|hxx|h\+\+|c|C|cpp|cxx|c\+\+)$' -0 | xargs -0 clang-format -i'''
tools = { "pipx:clang-format" = "20.1.3" }
["fix:legal:copyright"]
description = "Run the check_license_headers --fix xtask"
run = "cargo xtask check_license_headers --fix-it"
["fix:python:format"]
description = "Run ruff format"
run = "ruff format"
tools = { "ruff" = "0.11.8" }
["fix:rust:format"]
description = "Run cargo fmt --all"
run = "cargo fmt --all"
["fix:rust:format:root"]
description = "Run cargo fmt --all"
run = "cargo fmt --all"
dir = "."
["fix:rust:format:bevy"]
description = "Run cargo fmt --all"
run = "cargo fmt --all"
dir = "examples/bevy"
["fix:rust:format:bevy-hosts"]
description = "Run cargo fmt --all"
run = "cargo fmt --all"
dir = "examples/bevy-hosts-slint"
["fix:rust:format:servo"]
description = "Run cargo fmt --all"
run = "cargo fmt --all"
dir = "examples/servo"
["fix:rust:format:safeui"]
description = "Run cargo fmt --all"
run = "cargo fmt --all"
dir = "examples/safe-ui"
["fix:rust:format:all"]
depends = [
"fix:rust:format:root",
"fix:rust:format:bevy",
"fix:rust:format:bevy-hosts",
"fix:rust:format:servo",
"fix:rust:format:safeui",
]
["fix:toml:format"]
description = "Run taplo format"
run = "taplo format"
["fix:pnpm:lock"]
description = "Update pnpm lock file"
run = "pnpm i --lockfile-only"
["fix:pnpm:dedupe"]
description = "Run pnpm dedupe"
run = "pnpm dedupe"
depends = ["prepare:pnpm-install"]
["fix:ts:format"]
description = "Run pnpm format:fix"
run = "pnpm run format:fix"
depends = ["prepare:pnpm-install"]
["fix:ts:biome"]
description = "Run pnpm lint:fix"
run = "pnpm run lint:fix"
depends = ["prepare:pnpm-install"]
### Lints
["lint:ts:typecheck"]
description = "Run pnpm format:fix"
run = "pnpm type-check:ci"
depends = ["prepare:pnpm-install"]
### Build
["build:lsp:wasm"]
description = "Build the LSP (WASM)"
dir = "editors/vscode"
sources = ["tools/lsp/Cargo.toml", "tools/lsp/**/*.rs", "tools/lsp/ui/**/*.slint"]
outputs = ["tools/lsp/pkg/*"]
run = "pnpm run build:wasm_lsp"
tools = { "ubi:drager/wasm-pack" = "0.13.1" }
depends = ["prepare:pnpm-install"]
["build:interpreter:wasm"]
description = "Build the Slint interpreteer (WASM)"
dir = "tools/slintpad"
sources = ["api/wasm-interpreter/Cargo.toml", "api/wasm-interpreter/src/**/*.rs"]
outputs = ["api/wasm-interpreter/pkg/*"]
run = "pnpm run build:wasm_interpreter"
tools = { "ubi:drager/wasm-pack" = "0.13.1" }
depends = ["prepare:pnpm-install"]
["prepare:pnpm-install"]
hide = true
run = "pnpm install --frozen-lockfile"
depends = ["fix:pnpm:lock"]
### CI
["ci:autofix:fix"]
description = "CI autofix job -- fix steps"
depends = [
"fix:cpp:format",
"fix:legal:copyright",
"fix:python:format",
"fix:rust:format:all",
"fix:text:trailing_spaces",
"fix:toml:format",
"fix:pnpm:lock",
"fix:pnpm:dedupe",
"fix:ts:biome",
"fix:ts:format",
]
["ci:autofix:lint"]
description = "CI autofix job -- lint steps"
depends = ["lint:legal:reuse", "lint:ts:typecheck"]