Anki/scripts/ts-run
Damien Elmes d7a7ac114f switch convenience symlinks to .bazel/
Unfortunately 13cfa87a82 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

11 lines
348 B
Bash
Executable file

#!/bin/bash
#
# Start Anki with the data folder pointed at bazel-bin,
# which is useful when developing TS pages on a Mac.
#
# The pages can be accessed by, eg surfing to
# http://localhost:40000/_anki/pages/deckconfig.html
ANKI_DATA_FOLDER=$(pwd)/.bazel/bin/qt/aqt \
QTWEBENGINE_REMOTE_DEBUGGING=8080 \
ANKI_API_PORT=40000 ANKIDEV=1 ./run $*