generated from IWANABETHATGUY/tower-lsp-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.toml
45 lines (38 loc) · 1.12 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
[config]
default_to_workspace = false
skip_core_tasks = true
[tasks.deps]
script = '''
cargo install wasm-bindgen-cli --version 0.2.81
# npm install
'''
[tasks.install-bin]
script = '''
cargo install --path ./lsp-bin/ --debug
'''
[tasks.build-server]
script = '''
RUSTFLAGS=--cfg=web_sys_unstable_apis cargo build -p lsp-web --release --target wasm32-unknown-unknown
RUSTFLAGS=--cfg=web_sys_unstable_apis wasm-bindgen --out-dir ./lsp-web/packages/app/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/release/lsp_web.wasm
RUSTFLAGS=--cfg=web_sys_unstable_apis wasm-bindgen --out-dir ./lsp-web/packages/vscode/assets/wasm --target web --typescript ./target/wasm32-unknown-unknown/release/lsp_web.wasm --omit-default-module-path
'''
[tasks.run-app]
script = '''
cd lsp-web
npm run app --workspace=packages/app
'''
[tasks.run-web]
script = '''
cd lsp-web
npm run run-in-browser --workspace=packages/vscode
'''
[tasks.build-prod]
script = '''
cd lsp-web
npm run build:prod --workspace=packages/app
''''
[tasks.build-docs]
script = '''
cargo doc --workspace --exclude lsp-web --lib
cargo doc -p lsp-web --lib
''''