For add-on description, please see AnkiWeb page or the FAQ
After cloning the project, run the following command
git submodule update --init --recursive
npm ci
The first command installs ankiaddonconfig as a git submodule, and the second command installs the npm dev dependencies of this project.
After editing code in ./src/ts, run npm run build
to compile it to ./src/addon/web/editor/editor.js.
This project uses mypy type checking for Python, and standardjs for formatting Javascript.
python -m mypy .
npx standard --fix
You will need to install the following python packages to run mypy:
python -m pip install aqt PyQt5-stubs mypy types-simplejson
This project doesn't use a strict python formatter. Even so, please make it look pretty enough :)
After cloning the repo, go into the repo directory and run the following command to install the git submodule ankiaddonconfig
git submodule update --init --remote src/addon/ankiaddonconfig
After installing the git submodule, run the following command to create an efdrc.ankiaddon
file
cd src/addon ; zip -r ../../efdrc.ankiaddon * ; cd ../../