-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.justfile
More file actions
40 lines (30 loc) · 1.17 KB
/
Copy path.justfile
File metadata and controls
40 lines (30 loc) · 1.17 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
clippy:
cargo clippy --all-targets --all-features --locked -- -D warnings
build-wasm:
wasm-pack build ./crates/wasm-app
start:
wasm-pack build ./crates/wasm-app
cd webapp && rm -rf node_modules && pnpm install && pnpm run dev
ci:
cargo check
cargo test
cargo fmt
just clippy
build-lsp:
cargo build -p lsp-server
install-lsp:
cargo build -p lsp-server
mkdir -p editors/vscode/bin
cp target/debug/goml-lsp editors/vscode/bin/
vscode-ext:
just install-lsp
cd editors/vscode && npm install && npm run compile
package-vscode-ext:
cd editors/vscode && npx @vscode/vsce package --allow-missing-repository --skip-license
install-vscode-ext:
cd editors/vscode && npx @vscode/vsce package --allow-missing-repository --skip-license && code --install-extension *.vsix
install:
home="${GOML_HOME:-$HOME/.goml}"; cargo install --path ./crates/gomlc --debug --offline --root "$home" --force --locked; cargo install --path ./crates/goml --debug --offline --root "$home" --force --locked; rm -rf "$home/lib/std"; mkdir -p "$home/lib"; cp -R stdlib/std "$home/lib/std"
install-lsp-suite:
just install-lsp
just install-vscode-ext