polarity/Makefile
Tim Süberkrüb 1ed1675318
Some checks are pending
Rust CI / Build with MSRV (push) Waiting to run
Rust CI / Check (push) Waiting to run
Rust CI / Tests (push) Waiting to run
Rust CI / Rustfmt (push) Waiting to run
Rust CI / Clippy (push) Waiting to run
Rust CI / package (push) Waiting to run
Rust CI / Check line endings (push) Waiting to run
Codecov Coverage / coverage (push) Waiting to run
Build and deploy web demo / deploy (push) Waiting to run
Lint Code Base / Lint Code Base (push) Waiting to run
Check nix code / Check nix code (push) Waiting to run
Refactor web editor (#588)
* Factor out lsp-related code to separate npm package

* Flatten web-editor package

* Rename browser crate folder to lsp-wasm

* package target should not use --no-verify
2025-11-03 11:44:41 +00:00

40 lines
899 B
Makefile

.PHONY: install
install:
@cargo build --release
@cargo install --offline --locked --path app --force
.PHONY: check
check: lint test
.PHONY: lint
lint:
@cargo clippy --all -- -Dwarnings
@cargo fmt --all --check
@(cd web; make lint)
.PHONY: test
test:
@cargo test --workspace
.PHONY: bench
bench:
@cargo run -p polarity-bench -- --bench
.PHONY: update-expected
update-expected:
@cargo test -p test-runner -- --update-expected
.PHONY: coverage
coverage:
@echo "Make sure to install via cargo install cargo-llvm-cov first"
@cargo llvm-cov --workspace --html
@cargo llvm-cov --workspace --open
.PHONY: package-quick
package-quick:
@cargo package --workspace --no-verify --exclude polarity-bench --exclude test-runner --exclude polarity-lang-lsp-wasm
.PHONY: package
package:
@cargo package --workspace --exclude polarity-bench --exclude test-runner --exclude polarity-lang-lsp-wasm