forked from nvarner/typst-lsp
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
61 lines (52 loc) · 1.36 KB
/
Makefile.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
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
# Lapce extension
[tasks.lapce-extension-dev-setup.linux]
script = '''
ln -s "$(realpath .)/editors/lapce/" "${XDG_DATA_HOME:-$HOME/.local/share}/lapce-stable/plugins/nvarner.typst-lsp"
'''
[tasks.lapce-extension-check-flow]
dependencies = [
"lapce-extension-build-wasm",
"lapce-extension-clippy",
"lapce-extension-fmt-check",
]
[tasks.lapce-extension-clippy]
cwd = "editors/lapce/"
command = "cargo"
args = ["clippy", "--all-targets", "--", "-Dwarnings"]
[tasks.lapce-extension-fmt-check]
cwd = "editors/lapce/"
command = "cargo"
args = ["fmt", "--all", "--check"]
[tasks.lapce-extension-build-flow]
dependencies = [
"build",
"lapce-extension-build-wasm",
"lapce-extension-copy-wasm",
]
[tasks.lapce-extension-build-release-flow]
dependencies = [
"lapce-extension-build-release-wasm",
"lapce-extension-copy-release-wasm",
]
[tasks.lapce-extension-build-wasm]
cwd = "editors/lapce/"
command = "cargo"
args = ["build"]
[tasks.lapce-extension-build-release-wasm]
cwd = "editors/lapce/"
command = "cargo"
args = ["build", "--release"]
[tasks.lapce-extension-copy-wasm]
cwd = "editors/lapce/"
script_runner = "@shell"
script = '''
mkdir -p out/
cp target/wasm32-wasi/debug/lapce.wasm out/
'''
[tasks.lapce-extension-copy-release-wasm]
cwd = "editors/lapce/"
script_runner = "@shell"
script = '''
mkdir -p out/
cp target/wasm32-wasi/release/lapce.wasm out/
'''