forked from blopker/codebook
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
54 lines (41 loc) · 1.58 KB
/
Makefile
File metadata and controls
54 lines (41 loc) · 1.58 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
MAKEFLAGS += -j4
.PHONY: *
export RUST_LOG=debug
test:
cargo test --lib --bins --tests -- --test-threads=20
build:
cd crates/codebook-lsp && cargo build --release
integration_test: build
cd integration_tests && bun test
# Build and install 'fast-build' dev version into Zed's extension directory for testing
install_ext: generate_word_list
cd crates/codebook-lsp && cargo build --profile=fast-release
cp -f target/fast-release/codebook-lsp "${HOME}/Library/Application Support/Zed/extensions/work/codebook/"
# Install release version into Zed's extension directory for testing
install_release_ext: generate_word_list
cd crates/codebook-lsp && cargo build --release
cp -f target/release/codebook-lsp "${HOME}/Library/Application Support/Zed/extensions/work/codebook/"
uninstall_ext:
rm -f "${HOME}/Library/Application Support/Zed/extensions/work/codebook/codebook-lsp"
generate_word_list:
bun run scripts/generate_combined_wordlist.ts
release-lsp:
bun run scripts/release_lsp.ts
clear_cache: build
target/debug/codebook-lsp clean
benchmark:
cd crates/codebook && cargo build --release
./target/release/codebook --benchmark
build-dictionaries:
cargo run -p dictionary-builder -- build
generate-manifest:
cargo run -p dictionary-builder -- generate-manifest
publish_crates:
# 1. First, publish the codebook-config crate
-cargo publish -p codebook_config
# 2. Then publish the renamed downloader crate
-cargo publish -p codebook_downloader
# 3. Then publish the main codebook library
-cargo publish -p codebook
# 4. Finally, publish the codebook-lsp binary
-cargo publish -p codebook-lsp