anki/.bazelrc
Damien Elmes f842ab7c9d switch convenience symlinks to .bazel/
Unfortunately 5efaf5a4be broke the Svelte
language tools - presumably having paths outside of the repo is confusing
them.

As a plan B, the symlinks have been shifted to a single subdir. Along
with some exclusions in the VS Code config, this should allow VS Code
to continue to work out of the box, but the docs will need updating
to reflect the extra work required for PyCharm/IntelliJ.

+ fix svelte-check execution on a system without node installed. It
still throws up some errors that are presumably caused by our multiple
rootDirs - not sure if there's an easy way to work around that.
2022-01-24 11:06:02 +10:00

39 lines
1.3 KiB
Plaintext

common --enable_platform_specific_config
common --experimental_repository_cache_hardlinks
# runfiles are off by default on Windows, and we need them
build --enable_runfiles
# skip the slow zip step on Windows, as we have symlinks
build:windows --build_python_zip=false
# record version/build hash
build --workspace_status_command='bash ./scripts/status.sh'
# run clippy when compiling rust in test mode
test --aspects=@rules_rust//rust:defs.bzl%rust_clippy_aspect --output_groups=+clippy_checks
# print output when test fails
test --test_output=errors
# don't add empty __init__.py files
build --incompatible_default_to_explicit_init_py
# custom output for CI
build:ci --show_timestamps --isatty=0 --color=yes --show_progress_rate_limit=5
# 'opt' config is an alias for building with optimizations
build:opt -c opt
# the TypeScript workers on Windows choke when deps are changed while they're
# still running, so shut them down at the end of the build.
build:windows --worker_quit_after_build
# place convenience symlinks inside a single folder for easier exclusion in IDEs
build --symlink_prefix=.bazel/
build --experimental_no_product_name_out_symlink
# allow extra user customizations in a separate file
# (see .user.bazelrc for an example)
try-import %workspace%/user.bazelrc