generated from lapce-community/lapce-volt-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
56 lines (45 loc) · 1.11 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
[tasks.default]
clear = true
dependencies = [
"fmt",
"check",
"clippy",
"release",
]
[tasks.fmt]
command = "cargo"
args = ["fmt"]
[tasks.release]
dependencies = ["build-release"]
[tasks.dev]
dependencies = ["build-dev"]
[tasks.check]
command = "cargo"
args = ["check"]
[tasks.clippy]
command = "cargo"
args = ["clippy"]
[tasks.build-dev]
command = "cargo"
args = ["install", "--path", ".", "--debug"]
[tasks.build-release]
command = "cargo"
args = ["install", "--path", "."]
[tasks.install]
script = """
export xdg_data_dir="$HOME/.local/share"
export plugin_dir="plugins/tobil4sk.lapce-haxe"
mkdir -p ${xdg_data_dir}/lapce-stable/{{plugin_dir}}/bin
yes | cp -i bin/lapce-haxe.wasm ${xdg_data_dir}/lapce-stable/${plugin_dir}/bin
yes | cp -i volt.toml ${xdg_data_dir}/lapce-stable/${plugin_dir}/
yes | cp -i server/bin/server.js ${xdg_data_dir}/lapce-stable/${plugin_dir}/
"""
[tasks.haxe-language-server-setup]
command = "npm"
args = ["install", "--prefix", "server"]
[tasks.haxe-language-server]
dependencies = ["haxe-language-server-setup"]
script = """
cd server
npx lix run vshaxe-build --target language-server
"""