forked from silvanshade/tower-lsp-web-demo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.toml
47 lines (38 loc) · 798 Bytes
/
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
[config]
default_to_workspace = false
skip_core_tasks = true
[tasks.deps]
script = '''
cargo install wasm-bindgen-cli
npm install
'''
[tasks.build-server]
script = '''
cargo build --release
wasm-bindgen --out-dir ./packages/app/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/release/demo_lsp_browser.wasm
'''
[tasks.build-app]
script = '''
npm run build --workspace=packages/app
'''
[tasks.build]
dependencies = ["build-server", "build-app"]
[tasks.clean-server]
script = '''
cargo clean
'''
[tasks.clean-app]
script = '''
rm -rf packages/app/dist
rm -rf packages/app/assets/wasm
'''
[tasks.clean]
dependencies = ["clean-server", "clean-app"]
[tasks.format]
script = '''
cargo +nightly fmt --all
'''
[tasks.run]
script = '''
npm run app --workspace=packages/app
'''