> ## Documentation Index
> Fetch the complete documentation index at: https://anki.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Ninja

Brief notes for people used to the existing Bazel build system:

* Put the ninja binary on your path: [https://github.com/ninja-build/ninja/releases/tag/v1.11.1](https://github.com/ninja-build/ninja/releases/tag/v1.11.1)
  (on Windows, if you have it installed in msys, make sure the native binary occurs earlier on the path)

* Ensure Rust is installed via rustup: [https://rustup.rs/](https://rustup.rs/)

* Remove the .bazel and node\_modules folders from your existing checkout

* Run with ./run

* Run tests with './ninja check' (tools\ninja on Windows)

* Format files with './ninja format'

* Fix eslint/copyright issues with './ninja fix'

* Targets are hierarchical, so './ninja check:jest:deck-options' will run
  the Jest tests for ts/deck-options, and './ninja check:jest' will run all
  Jest tests.
