2020-11-12 10:54:13 +01:00
|
|
|
{
|
2022-03-24 01:24:56 +01:00
|
|
|
"@floating-ui/core@0.5.1": {
|
2022-03-02 05:21:19 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/floating-ui/floating-ui",
|
|
|
|
"publisher": "atomiks",
|
|
|
|
"path": "node_modules/@floating-ui/core",
|
|
|
|
"licenseFile": "node_modules/@floating-ui/core/README.md"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@floating-ui/dom@0.3.1": {
|
2022-03-02 05:21:19 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/floating-ui/floating-ui",
|
|
|
|
"publisher": "atomiks",
|
|
|
|
"path": "node_modules/@floating-ui/dom",
|
|
|
|
"licenseFile": "node_modules/@floating-ui/dom/README.md"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"@fluent/bundle@0.17.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/projectfluent/fluent.js",
|
|
|
|
"publisher": "Mozilla",
|
|
|
|
"email": "l10n-drivers@mozilla.org",
|
|
|
|
"path": "node_modules/@fluent/bundle",
|
|
|
|
"licenseFile": "node_modules/@fluent/bundle/README.md"
|
|
|
|
},
|
2022-08-01 12:15:22 +02:00
|
|
|
"@mdi/svg@7.0.96": {
|
2021-03-29 15:27:42 +02:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/Templarian/MaterialDesign-SVG",
|
|
|
|
"publisher": "Austin Andrews",
|
|
|
|
"path": "node_modules/@mdi/svg",
|
|
|
|
"licenseFile": "node_modules/@mdi/svg/LICENSE"
|
2021-03-29 14:54:10 +02:00
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@popperjs/core@2.11.4": {
|
2021-04-14 14:29:06 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/popperjs/popper-core",
|
|
|
|
"publisher": "Federico Zivolo",
|
|
|
|
"email": "federico.zivolo@gmail.com",
|
|
|
|
"path": "node_modules/@popperjs/core",
|
|
|
|
"licenseFile": "node_modules/@popperjs/core/LICENSE.md"
|
|
|
|
},
|
2020-11-12 12:07:59 +01:00
|
|
|
"@protobufjs/aspromise@1.1.2": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/aspromise",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/aspromise/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/base64@1.1.2": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/base64",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/base64/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/codegen@2.0.4": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/codegen",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/codegen/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/eventemitter@1.1.0": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/eventemitter",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/eventemitter/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/fetch@1.1.0": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/fetch",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/fetch/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/float@1.0.2": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/float",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/float/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/inquire@1.1.0": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/inquire",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/inquire/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/path@1.1.2": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/path",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/path/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/pool@1.1.0": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/pool",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/pool/LICENSE"
|
|
|
|
},
|
|
|
|
"@protobufjs/utf8@1.1.0": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/dcodeIO/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/@protobufjs/utf8",
|
|
|
|
"licenseFile": "node_modules/@protobufjs/utf8/LICENSE"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"@types/lodash-es@4.17.6": {
|
2021-04-25 11:05:19 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
|
|
|
"path": "node_modules/@types/lodash-es",
|
|
|
|
"licenseFile": "node_modules/@types/lodash-es/LICENSE"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@types/lodash@4.14.180": {
|
2021-04-25 11:05:19 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
|
|
|
"path": "node_modules/@types/lodash",
|
|
|
|
"licenseFile": "node_modules/@types/lodash/LICENSE"
|
|
|
|
},
|
2022-03-24 01:24:56 +01:00
|
|
|
"@types/marked@4.0.3": {
|
2021-05-16 13:41:40 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
|
|
|
"path": "node_modules/@types/marked",
|
|
|
|
"licenseFile": "node_modules/@types/marked/LICENSE"
|
|
|
|
},
|
Move away from Bazel (#2202)
(for upgrading users, please see the notes at the bottom)
Bazel brought a lot of nice things to the table, such as rebuilds based on
content changes instead of modification times, caching of build products,
detection of incorrect build rules via a sandbox, and so on. Rewriting the build
in Bazel was also an opportunity to improve on the Makefile-based build we had
prior, which was pretty poor: most dependencies were external or not pinned, and
the build graph was poorly defined and mostly serialized. It was not uncommon
for fresh checkouts to fail due to floating dependencies, or for things to break
when trying to switch to an older commit.
For day-to-day development, I think Bazel served us reasonably well - we could
generally switch between branches while being confident that builds would be
correct and reasonably fast, and not require full rebuilds (except on Windows,
where the lack of a sandbox and the TS rules would cause build breakages when TS
files were renamed/removed).
Bazel achieves that reliability by defining rules for each programming language
that define how source files should be turned into outputs. For the rules to
work with Bazel's sandboxing approach, they often have to reimplement or
partially bypass the standard tools that each programming language provides. The
Rust rules call Rust's compiler directly for example, instead of using Cargo,
and the Python rules extract each PyPi package into a separate folder that gets
added to sys.path.
These separate language rules allow proper declaration of inputs and outputs,
and offer some advantages such as caching of build products and fine-grained
dependency installation. But they also bring some downsides:
- The rules don't always support use-cases/platforms that the standard language
tools do, meaning they need to be patched to be used. I've had to contribute a
number of patches to the Rust, Python and JS rules to unblock various issues.
- The dependencies we use with each language sometimes make assumptions that do
not hold in Bazel, meaning they either need to be pinned or patched, or the
language rules need to be adjusted to accommodate them.
I was hopeful that after the initial setup work, things would be relatively
smooth-sailing. Unfortunately, that has not proved to be the case. Things
frequently broke when dependencies or the language rules were updated, and I
began to get frustrated at the amount of Anki development time I was instead
spending on build system upkeep. It's now about 2 years since switching to
Bazel, and I think it's time to cut losses, and switch to something else that's
a better fit.
The new build system is based on a small build tool called Ninja, and some
custom Rust code in build/. This means that to build Anki, Bazel is no longer
required, but Ninja and Rust need to be installed on your system. Python and
Node toolchains are automatically downloaded like in Bazel.
This new build system should result in faster builds in some cases:
- Because we're using cargo to build now, Rust builds are able to take advantage
of pipelining and incremental debug builds, which we didn't have with Bazel.
It's also easier to override the default linker on Linux/macOS, which can
further improve speeds.
- External Rust crates are now built with opt=1, which improves performance
of debug builds.
- Esbuild is now used to transpile TypeScript, instead of invoking the TypeScript
compiler. This results in faster builds, by deferring typechecking to test/check
time, and by allowing more work to happen in parallel.
As an example of the differences, when testing with the mold linker on Linux,
adding a new message to tags.proto (which triggers a recompile of the bulk of
the Rust and TypeScript code) results in a compile that goes from about 22s on
Bazel to about 7s in the new system. With the standard linker, it's about 9s.
Some other changes of note:
- Our Rust workspace now uses cargo-hakari to ensure all packages agree on
available features, preventing unnecessary rebuilds.
- pylib/anki is now a PEP420 implicit namespace, avoiding the need to merge
source files and generated files into a single folder for running. By telling
VSCode about the extra search path, code completion now works with generated
files without needing to symlink them into the source folder.
- qt/aqt can't use PEP420 as it's difficult to get rid of aqt/__init__.py.
Instead, the generated files are now placed in a separate _aqt package that's
added to the path.
- ts/lib is now exposed as @tslib, so the source code and generated code can be
provided under the same namespace without a merging step.
- MyPy and PyLint are now invoked once for the entire codebase.
- dprint will be used to format TypeScript/json files in the future instead of
the slower prettier (currently turned off to avoid causing conflicts). It can
automatically defer to prettier when formatting Svelte files.
- svelte-check is now used for typechecking our Svelte code, which revealed a
few typing issues that went undetected with the old system.
- The Jest unit tests now work on Windows as well.
If you're upgrading from Bazel, updated usage instructions are in docs/development.md and docs/build.md. A summary of the changes:
- please remove node_modules and .bazel
- install rustup (https://rustup.rs/)
- install rsync if not already installed (on windows, use pacman - see docs/windows.md)
- install Ninja (unzip from https://github.com/ninja-build/ninja/releases/tag/v1.11.1 and
place on your path, or from your distro/homebrew if it's 1.10+)
- update .vscode/settings.json from .vscode.dist
2022-11-27 06:24:20 +01:00
|
|
|
"@types/node@18.11.9": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/DefinitelyTyped/DefinitelyTyped",
|
2022-01-16 04:29:48 +01:00
|
|
|
"path": "node_modules/protobufjs/node_modules/@types/node",
|
|
|
|
"licenseFile": "node_modules/protobufjs/node_modules/@types/node/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"bootstrap-icons@1.8.1": {
|
2021-02-27 04:01:33 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/twbs/icons",
|
|
|
|
"publisher": "mdo",
|
|
|
|
"path": "node_modules/bootstrap-icons",
|
|
|
|
"licenseFile": "node_modules/bootstrap-icons/LICENSE.md"
|
|
|
|
},
|
2021-06-29 03:25:14 +02:00
|
|
|
"bootstrap@5.0.2": {
|
2021-02-27 04:01:33 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/twbs/bootstrap",
|
|
|
|
"publisher": "The Bootstrap Authors",
|
|
|
|
"url": "https://github.com/twbs/bootstrap/graphs/contributors",
|
|
|
|
"path": "node_modules/bootstrap",
|
|
|
|
"licenseFile": "node_modules/bootstrap/LICENSE"
|
|
|
|
},
|
2022-09-10 10:46:59 +02:00
|
|
|
"character-entities@2.0.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/wooorm/character-entities",
|
|
|
|
"publisher": "Titus Wormer",
|
|
|
|
"email": "tituswormer@gmail.com",
|
|
|
|
"url": "https://wooorm.com",
|
|
|
|
"path": "node_modules/character-entities",
|
|
|
|
"licenseFile": "node_modules/character-entities/license"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"codemirror@5.65.2": {
|
2021-06-17 14:44:03 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/codemirror/CodeMirror",
|
|
|
|
"publisher": "Marijn Haverbeke",
|
|
|
|
"email": "marijnh@gmail.com",
|
|
|
|
"url": "http://marijnhaverbeke.nl",
|
|
|
|
"path": "node_modules/codemirror",
|
|
|
|
"licenseFile": "node_modules/codemirror/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"commander@7.2.0": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/tj/commander.js",
|
|
|
|
"publisher": "TJ Holowaychuk",
|
|
|
|
"email": "tj@vision-media.ca",
|
|
|
|
"path": "node_modules/commander",
|
|
|
|
"licenseFile": "node_modules/commander/LICENSE"
|
|
|
|
},
|
2020-12-31 16:27:52 +01:00
|
|
|
"css-browser-selector@0.6.5": {
|
|
|
|
"licenses": "CC-BY-SA-2.5",
|
|
|
|
"repository": "https://github.com/verbatim/css_browser_selector",
|
|
|
|
"publisher": "Rafael Lima",
|
|
|
|
"path": "node_modules/css-browser-selector",
|
|
|
|
"licenseFile": "node_modules/css-browser-selector/README.mkdn"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-array@3.2.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-array",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-array",
|
|
|
|
"licenseFile": "node_modules/d3-array/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-axis@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-axis",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2020-11-12 12:07:59 +01:00
|
|
|
"path": "node_modules/d3-axis",
|
|
|
|
"licenseFile": "node_modules/d3-axis/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-brush@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-brush",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-brush",
|
|
|
|
"licenseFile": "node_modules/d3-brush/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-chord@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-chord",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-chord",
|
|
|
|
"licenseFile": "node_modules/d3-chord/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-color@3.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-color",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-color",
|
|
|
|
"licenseFile": "node_modules/d3-color/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-contour@4.0.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-contour",
|
2020-11-12 12:07:59 +01:00
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-contour",
|
|
|
|
"licenseFile": "node_modules/d3-contour/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-delaunay@6.0.2": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/d3/d3-delaunay",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-delaunay",
|
|
|
|
"licenseFile": "node_modules/d3-delaunay/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-dispatch@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-dispatch",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-dispatch",
|
|
|
|
"licenseFile": "node_modules/d3-dispatch/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-drag@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-drag",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-drag",
|
|
|
|
"licenseFile": "node_modules/d3-drag/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-dsv@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-dsv",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-dsv",
|
|
|
|
"licenseFile": "node_modules/d3-dsv/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-ease@3.0.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/d3/d3-ease",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-ease",
|
|
|
|
"licenseFile": "node_modules/d3-ease/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-fetch@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-fetch",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-fetch",
|
|
|
|
"licenseFile": "node_modules/d3-fetch/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-force@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-force",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-force",
|
|
|
|
"licenseFile": "node_modules/d3-force/LICENSE"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"d3-format@3.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-format",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-format",
|
|
|
|
"licenseFile": "node_modules/d3-format/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-geo@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-geo",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-geo",
|
|
|
|
"licenseFile": "node_modules/d3-geo/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3-hierarchy@3.1.2": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-hierarchy",
|
2020-11-12 12:07:59 +01:00
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-hierarchy",
|
|
|
|
"licenseFile": "node_modules/d3-hierarchy/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-interpolate@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-interpolate",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-interpolate",
|
|
|
|
"licenseFile": "node_modules/d3-interpolate/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-path@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-path",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-path",
|
|
|
|
"licenseFile": "node_modules/d3-path/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-polygon@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-polygon",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-polygon",
|
|
|
|
"licenseFile": "node_modules/d3-polygon/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-quadtree@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-quadtree",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-quadtree",
|
|
|
|
"licenseFile": "node_modules/d3-quadtree/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-random@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-random",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-random",
|
|
|
|
"licenseFile": "node_modules/d3-random/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-scale-chromatic@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-scale-chromatic",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2020-11-12 12:07:59 +01:00
|
|
|
"path": "node_modules/d3-scale-chromatic",
|
|
|
|
"licenseFile": "node_modules/d3-scale-chromatic/LICENSE"
|
|
|
|
},
|
update to latest rules_nodejs & switch to ts_project
ts_library() is deprecated and will presumably be dropped from a
future rules_nodejs, and it wasn't working with the jest tests
after updating, so we switch over to ts_project().
There are some downsides:
- It's a bit slower, as the worker mode doesn't appear to function
at the moment.
- Getting it working with a mix of source files and generated files
was quite tricky, especially as things behave differently on Windows,
and differently when editing with VS Code. Solved with a small patch
to the rules, and a wrapper script that copies everything into the
bin folder first. To keep VS Code working correctly as well, the built
files are symlinked into the source folder.
- TS libraries are not implicitly linked to node_modules, so they
can't be imported with an absolute name like "lib/proto" - we need
to use relative paths like "../lib/proto" instead. Adjusting "paths"
in tsconfig.json makes it work for TS compilation, but then it fails
at the esbuild stage. We could resolve it by wrapping the TS
libraries in a subsequent js_library() call, but that has the downside
of losing the transient dependencies, meaning they need to be listed
again. Alternatively we might be able to solve it in the future by
adjusting esbuild, but for now the paths have been made relative to
keep things simple.
Upsides:
- Along with updates to the Svelte tooling, Svelte typing has improved.
All exports made in a Svelte file are now visible to other files that
import them, and we no longer rebuild the Svelte files when TS files
are updated, as the Svelte files do no type checking themselves, and
are just a simple transpilation. Svelte-check now works on Windows again,
and there should be no errors when editing in VS Code after you've
built the project. The only downside seems to be that cmd+clicking
on a Svelte imports jumps to the .d.ts file instead of the original now;
presumably they'll fix that in a future plugin update.
- Each subfolder now has its own tsconfig.json, and tsc can be called
directly for testing purposes (but beware it will place build products
in the source tree): ts/node_modules/.bin/tsc -b ts
- We can drop the custom esbuild_toolchain, as it's included in the
latest rules_nodejs.
Other changes:
- "image_module_support" is moved into lib/, and imported with
<reference types=...>
- Images are now imported directly from their npm package; the
extra copy step has been removed.
Windows users may need to use "bazel clean" before building this,
due to old files lying around in the build folder.
2021-09-30 14:16:29 +02:00
|
|
|
"d3-scale@4.0.2": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-scale",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2020-11-12 12:07:59 +01:00
|
|
|
"path": "node_modules/d3-scale",
|
|
|
|
"licenseFile": "node_modules/d3-scale/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-selection@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-selection",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-selection",
|
|
|
|
"licenseFile": "node_modules/d3-selection/LICENSE"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"d3-shape@3.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-shape",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-shape",
|
|
|
|
"licenseFile": "node_modules/d3-shape/LICENSE"
|
|
|
|
},
|
2022-01-16 04:29:48 +01:00
|
|
|
"d3-time-format@4.1.0": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-time-format",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-time-format",
|
|
|
|
"licenseFile": "node_modules/d3-time-format/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-time@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-time",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-time",
|
|
|
|
"licenseFile": "node_modules/d3-time/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-timer@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-timer",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-timer",
|
|
|
|
"licenseFile": "node_modules/d3-timer/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-transition@3.0.1": {
|
|
|
|
"licenses": "ISC",
|
2020-11-12 12:07:59 +01:00
|
|
|
"repository": "https://github.com/d3/d3-transition",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3-transition",
|
|
|
|
"licenseFile": "node_modules/d3-transition/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"d3-zoom@3.0.0": {
|
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3-zoom",
|
|
|
|
"publisher": "Mike Bostock",
|
2021-06-16 08:43:16 +02:00
|
|
|
"url": "https://bost.ocks.org/mike",
|
2021-01-26 15:08:57 +01:00
|
|
|
"path": "node_modules/d3-zoom",
|
|
|
|
"licenseFile": "node_modules/d3-zoom/LICENSE"
|
|
|
|
},
|
2022-09-30 06:22:23 +02:00
|
|
|
"d3@7.6.1": {
|
2021-06-16 08:43:16 +02:00
|
|
|
"licenses": "ISC",
|
2021-01-26 15:08:57 +01:00
|
|
|
"repository": "https://github.com/d3/d3",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/d3",
|
|
|
|
"licenseFile": "node_modules/d3/LICENSE"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"delaunator@5.0.0": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/mapbox/delaunator",
|
|
|
|
"publisher": "Vladimir Agafonkin",
|
|
|
|
"path": "node_modules/delaunator",
|
|
|
|
"licenseFile": "node_modules/delaunator/LICENSE"
|
|
|
|
},
|
Fuzzy search in symbol insertion overlay (#2059)
* Add flag for enabling insert symbols feature
* Add symbols overlay directory
* Detect if :xy is inserted into editable
* Allow naive updating of overlay, and special handling of ':'
* First step towards better Virtual Element support
* Update floating to reference range on insert text
* Position SymbolsOverlay always on top or bottom
* Add a data-provider to emulate API
* Show correct suggestions in symbols overlay
* Rename to replacementLength
* Allow replacing via clicking in menu
* Optionally remove inline padding of Popover
* Hide Symbols overlay on blur of content editable
* Add specialKey to inputHandler and generalize how arrow movement is detected
- This way macOS users can use Ctrl-N to mean down, etc.
* Detect special key from within SymbolsOverlay
* Implement full backwards search while typing
* Allow navigating symbol menu and accepting with enter
* Add some entries to data-provider
* Satisfy eslint
* Generate symbolsTable from sources
* Use other github source, allow multiple names
In return, symbol must be unique
* Automatically scroll in symbols dropdown
* Use from npm packages rather than downloading from URL
* Remove console.log
* Remove print
Co-authored-by: Damien Elmes <dae@users.noreply.github.com>
* Add pointerDown event to input-handler
- so that SymbolsOverlay can reset on field click
* Make tab do the same as enter
* Make font a bit smaller but increase relative icon size
* Satisfy type requirement of handlerlist
* Revert changing default size of DropdownItems
* Remove some now unused code for bootstrap dropdowns
* Use fuse to allow fuzzy searching of symbols
* Remove unnecessary async handling in data-provider
I did that because at first I was still expecting to fetch the symbols
from the backend
* Apply field font family in symbol preview
* Remove inline padding from latex popover
* Rename data-provier to symbols-table
* Add some explaining comments to interface
* Allow for auto insertion symbols
* Use deleteData and after instead of replaceData
* Allow using html in symbols
* Show html symbols as html
* Add SymbolsEntry component
* Also include containshtml at low search precedence
* Put character entities and gemoji into their own files
* Factor out prepareInsertion method
* Allow deletion while searching for correct symbol
* Respect insertCompositionText
* Delete data-provider
* Restrict auto insert queries to max 5 characters
* Satisfy svelte check
* Fix the overlay sometimes not showing
This will make sure to always normalize text nodes before searching.
However it adjacent text is partially formatted, this will still not
find the whole query.
For example, currently, entering `<b>:for</b>al` and then inputting `l`,
will not trigger a search for `forall`, because of the <b> formatting
* Add empty line
* Do not trigger overlay, when last character is whitespace or colon
* Add missing fuse license
2022-09-13 06:19:19 +02:00
|
|
|
"fuse.js@6.6.2": {
|
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/krisk/Fuse",
|
|
|
|
"publisher": "Kiro Risk",
|
|
|
|
"email": "kirollos@gmail.com",
|
|
|
|
"url": "http://kiro.me",
|
|
|
|
"path": "node_modules/fuse.js",
|
|
|
|
"licenseFile": "node_modules/fuse.js/LICENSE"
|
|
|
|
},
|
2022-09-10 10:46:59 +02:00
|
|
|
"gemoji@7.1.0": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/wooorm/gemoji",
|
|
|
|
"publisher": "Titus Wormer",
|
|
|
|
"email": "tituswormer@gmail.com",
|
|
|
|
"url": "https://wooorm.com",
|
|
|
|
"path": "node_modules/gemoji",
|
|
|
|
"licenseFile": "node_modules/gemoji/license"
|
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"iconv-lite@0.6.3": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/ashtuchkin/iconv-lite",
|
|
|
|
"publisher": "Alexander Shtuchkin",
|
|
|
|
"email": "ashtuchkin@gmail.com",
|
|
|
|
"path": "node_modules/iconv-lite",
|
|
|
|
"licenseFile": "node_modules/iconv-lite/LICENSE"
|
|
|
|
},
|
2021-09-22 15:16:41 +02:00
|
|
|
"internmap@2.0.3": {
|
2021-01-26 15:08:57 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/mbostock/internmap",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "https://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/internmap",
|
|
|
|
"licenseFile": "node_modules/internmap/LICENSE"
|
|
|
|
},
|
2021-09-22 15:16:41 +02:00
|
|
|
"intl-pluralrules@1.3.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "ISC",
|
|
|
|
"repository": "https://github.com/eemeli/intl-pluralrules",
|
|
|
|
"publisher": "Eemeli Aro",
|
|
|
|
"email": "eemeli@gmail.com",
|
|
|
|
"path": "node_modules/intl-pluralrules",
|
|
|
|
"licenseFile": "node_modules/intl-pluralrules/LICENSE"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"jquery-ui-dist@1.13.1": {
|
2020-12-31 03:18:49 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jquery/jquery-ui",
|
|
|
|
"publisher": "jQuery Foundation and other contributors",
|
2022-02-25 06:29:49 +01:00
|
|
|
"url": "https://github.com/jquery/jquery-ui/blob/1.13.1/AUTHORS.txt",
|
2020-12-31 03:18:49 +01:00
|
|
|
"path": "node_modules/jquery-ui-dist",
|
|
|
|
"licenseFile": "node_modules/jquery-ui-dist/LICENSE.txt"
|
|
|
|
},
|
2021-03-27 06:02:02 +01:00
|
|
|
"jquery@3.6.0": {
|
2020-12-31 03:18:49 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/jquery/jquery",
|
2021-03-27 06:02:02 +01:00
|
|
|
"publisher": "OpenJS Foundation and other contributors",
|
|
|
|
"url": "https://github.com/jquery/jquery/blob/3.6.0/AUTHORS.txt",
|
2020-12-31 03:18:49 +01:00
|
|
|
"path": "node_modules/jquery",
|
|
|
|
"licenseFile": "node_modules/jquery/LICENSE.txt"
|
|
|
|
},
|
2021-04-16 12:07:49 +02:00
|
|
|
"lodash-es@4.17.21": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/lodash/lodash",
|
|
|
|
"publisher": "John-David Dalton",
|
|
|
|
"email": "john.david.dalton@gmail.com",
|
2021-04-16 12:07:49 +02:00
|
|
|
"path": "node_modules/lodash-es",
|
|
|
|
"licenseFile": "node_modules/lodash-es/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
},
|
Move away from Bazel (#2202)
(for upgrading users, please see the notes at the bottom)
Bazel brought a lot of nice things to the table, such as rebuilds based on
content changes instead of modification times, caching of build products,
detection of incorrect build rules via a sandbox, and so on. Rewriting the build
in Bazel was also an opportunity to improve on the Makefile-based build we had
prior, which was pretty poor: most dependencies were external or not pinned, and
the build graph was poorly defined and mostly serialized. It was not uncommon
for fresh checkouts to fail due to floating dependencies, or for things to break
when trying to switch to an older commit.
For day-to-day development, I think Bazel served us reasonably well - we could
generally switch between branches while being confident that builds would be
correct and reasonably fast, and not require full rebuilds (except on Windows,
where the lack of a sandbox and the TS rules would cause build breakages when TS
files were renamed/removed).
Bazel achieves that reliability by defining rules for each programming language
that define how source files should be turned into outputs. For the rules to
work with Bazel's sandboxing approach, they often have to reimplement or
partially bypass the standard tools that each programming language provides. The
Rust rules call Rust's compiler directly for example, instead of using Cargo,
and the Python rules extract each PyPi package into a separate folder that gets
added to sys.path.
These separate language rules allow proper declaration of inputs and outputs,
and offer some advantages such as caching of build products and fine-grained
dependency installation. But they also bring some downsides:
- The rules don't always support use-cases/platforms that the standard language
tools do, meaning they need to be patched to be used. I've had to contribute a
number of patches to the Rust, Python and JS rules to unblock various issues.
- The dependencies we use with each language sometimes make assumptions that do
not hold in Bazel, meaning they either need to be pinned or patched, or the
language rules need to be adjusted to accommodate them.
I was hopeful that after the initial setup work, things would be relatively
smooth-sailing. Unfortunately, that has not proved to be the case. Things
frequently broke when dependencies or the language rules were updated, and I
began to get frustrated at the amount of Anki development time I was instead
spending on build system upkeep. It's now about 2 years since switching to
Bazel, and I think it's time to cut losses, and switch to something else that's
a better fit.
The new build system is based on a small build tool called Ninja, and some
custom Rust code in build/. This means that to build Anki, Bazel is no longer
required, but Ninja and Rust need to be installed on your system. Python and
Node toolchains are automatically downloaded like in Bazel.
This new build system should result in faster builds in some cases:
- Because we're using cargo to build now, Rust builds are able to take advantage
of pipelining and incremental debug builds, which we didn't have with Bazel.
It's also easier to override the default linker on Linux/macOS, which can
further improve speeds.
- External Rust crates are now built with opt=1, which improves performance
of debug builds.
- Esbuild is now used to transpile TypeScript, instead of invoking the TypeScript
compiler. This results in faster builds, by deferring typechecking to test/check
time, and by allowing more work to happen in parallel.
As an example of the differences, when testing with the mold linker on Linux,
adding a new message to tags.proto (which triggers a recompile of the bulk of
the Rust and TypeScript code) results in a compile that goes from about 22s on
Bazel to about 7s in the new system. With the standard linker, it's about 9s.
Some other changes of note:
- Our Rust workspace now uses cargo-hakari to ensure all packages agree on
available features, preventing unnecessary rebuilds.
- pylib/anki is now a PEP420 implicit namespace, avoiding the need to merge
source files and generated files into a single folder for running. By telling
VSCode about the extra search path, code completion now works with generated
files without needing to symlink them into the source folder.
- qt/aqt can't use PEP420 as it's difficult to get rid of aqt/__init__.py.
Instead, the generated files are now placed in a separate _aqt package that's
added to the path.
- ts/lib is now exposed as @tslib, so the source code and generated code can be
provided under the same namespace without a merging step.
- MyPy and PyLint are now invoked once for the entire codebase.
- dprint will be used to format TypeScript/json files in the future instead of
the slower prettier (currently turned off to avoid causing conflicts). It can
automatically defer to prettier when formatting Svelte files.
- svelte-check is now used for typechecking our Svelte code, which revealed a
few typing issues that went undetected with the old system.
- The Jest unit tests now work on Windows as well.
If you're upgrading from Bazel, updated usage instructions are in docs/development.md and docs/build.md. A summary of the changes:
- please remove node_modules and .bazel
- install rustup (https://rustup.rs/)
- install rsync if not already installed (on windows, use pacman - see docs/windows.md)
- install Ninja (unzip from https://github.com/ninja-build/ninja/releases/tag/v1.11.1 and
place on your path, or from your distro/homebrew if it's 1.10+)
- update .vscode/settings.json from .vscode.dist
2022-11-27 06:24:20 +01:00
|
|
|
"long@5.2.1": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/dcodeIO/long.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode@dcode.io",
|
|
|
|
"path": "node_modules/long",
|
|
|
|
"licenseFile": "node_modules/long/LICENSE"
|
|
|
|
},
|
2022-02-25 06:29:49 +01:00
|
|
|
"marked@4.0.12": {
|
2021-05-16 13:41:40 +02:00
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/markedjs/marked",
|
|
|
|
"publisher": "Christopher Jeffrey",
|
|
|
|
"path": "node_modules/marked",
|
|
|
|
"licenseFile": "node_modules/marked/LICENSE.md"
|
|
|
|
},
|
2021-09-22 15:16:41 +02:00
|
|
|
"mathjax@3.2.0": {
|
2020-12-09 06:47:34 +01:00
|
|
|
"licenses": "Apache-2.0",
|
|
|
|
"repository": "https://github.com/mathjax/MathJax",
|
|
|
|
"path": "node_modules/mathjax",
|
|
|
|
"licenseFile": "node_modules/mathjax/LICENSE"
|
|
|
|
},
|
Move away from Bazel (#2202)
(for upgrading users, please see the notes at the bottom)
Bazel brought a lot of nice things to the table, such as rebuilds based on
content changes instead of modification times, caching of build products,
detection of incorrect build rules via a sandbox, and so on. Rewriting the build
in Bazel was also an opportunity to improve on the Makefile-based build we had
prior, which was pretty poor: most dependencies were external or not pinned, and
the build graph was poorly defined and mostly serialized. It was not uncommon
for fresh checkouts to fail due to floating dependencies, or for things to break
when trying to switch to an older commit.
For day-to-day development, I think Bazel served us reasonably well - we could
generally switch between branches while being confident that builds would be
correct and reasonably fast, and not require full rebuilds (except on Windows,
where the lack of a sandbox and the TS rules would cause build breakages when TS
files were renamed/removed).
Bazel achieves that reliability by defining rules for each programming language
that define how source files should be turned into outputs. For the rules to
work with Bazel's sandboxing approach, they often have to reimplement or
partially bypass the standard tools that each programming language provides. The
Rust rules call Rust's compiler directly for example, instead of using Cargo,
and the Python rules extract each PyPi package into a separate folder that gets
added to sys.path.
These separate language rules allow proper declaration of inputs and outputs,
and offer some advantages such as caching of build products and fine-grained
dependency installation. But they also bring some downsides:
- The rules don't always support use-cases/platforms that the standard language
tools do, meaning they need to be patched to be used. I've had to contribute a
number of patches to the Rust, Python and JS rules to unblock various issues.
- The dependencies we use with each language sometimes make assumptions that do
not hold in Bazel, meaning they either need to be pinned or patched, or the
language rules need to be adjusted to accommodate them.
I was hopeful that after the initial setup work, things would be relatively
smooth-sailing. Unfortunately, that has not proved to be the case. Things
frequently broke when dependencies or the language rules were updated, and I
began to get frustrated at the amount of Anki development time I was instead
spending on build system upkeep. It's now about 2 years since switching to
Bazel, and I think it's time to cut losses, and switch to something else that's
a better fit.
The new build system is based on a small build tool called Ninja, and some
custom Rust code in build/. This means that to build Anki, Bazel is no longer
required, but Ninja and Rust need to be installed on your system. Python and
Node toolchains are automatically downloaded like in Bazel.
This new build system should result in faster builds in some cases:
- Because we're using cargo to build now, Rust builds are able to take advantage
of pipelining and incremental debug builds, which we didn't have with Bazel.
It's also easier to override the default linker on Linux/macOS, which can
further improve speeds.
- External Rust crates are now built with opt=1, which improves performance
of debug builds.
- Esbuild is now used to transpile TypeScript, instead of invoking the TypeScript
compiler. This results in faster builds, by deferring typechecking to test/check
time, and by allowing more work to happen in parallel.
As an example of the differences, when testing with the mold linker on Linux,
adding a new message to tags.proto (which triggers a recompile of the bulk of
the Rust and TypeScript code) results in a compile that goes from about 22s on
Bazel to about 7s in the new system. With the standard linker, it's about 9s.
Some other changes of note:
- Our Rust workspace now uses cargo-hakari to ensure all packages agree on
available features, preventing unnecessary rebuilds.
- pylib/anki is now a PEP420 implicit namespace, avoiding the need to merge
source files and generated files into a single folder for running. By telling
VSCode about the extra search path, code completion now works with generated
files without needing to symlink them into the source folder.
- qt/aqt can't use PEP420 as it's difficult to get rid of aqt/__init__.py.
Instead, the generated files are now placed in a separate _aqt package that's
added to the path.
- ts/lib is now exposed as @tslib, so the source code and generated code can be
provided under the same namespace without a merging step.
- MyPy and PyLint are now invoked once for the entire codebase.
- dprint will be used to format TypeScript/json files in the future instead of
the slower prettier (currently turned off to avoid causing conflicts). It can
automatically defer to prettier when formatting Svelte files.
- svelte-check is now used for typechecking our Svelte code, which revealed a
few typing issues that went undetected with the old system.
- The Jest unit tests now work on Windows as well.
If you're upgrading from Bazel, updated usage instructions are in docs/development.md and docs/build.md. A summary of the changes:
- please remove node_modules and .bazel
- install rustup (https://rustup.rs/)
- install rsync if not already installed (on windows, use pacman - see docs/windows.md)
- install Ninja (unzip from https://github.com/ninja-build/ninja/releases/tag/v1.11.1 and
place on your path, or from your distro/homebrew if it's 1.10+)
- update .vscode/settings.json from .vscode.dist
2022-11-27 06:24:20 +01:00
|
|
|
"protobufjs@7.1.2": {
|
2020-11-12 12:07:59 +01:00
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/protobufjs/protobuf.js",
|
|
|
|
"publisher": "Daniel Wirtz",
|
|
|
|
"email": "dcode+protobufjs@dcode.io",
|
|
|
|
"path": "node_modules/protobufjs",
|
|
|
|
"licenseFile": "node_modules/protobufjs/LICENSE"
|
2021-01-26 15:08:57 +01:00
|
|
|
},
|
2021-06-16 08:43:16 +02:00
|
|
|
"robust-predicates@3.0.1": {
|
|
|
|
"licenses": "Unlicense",
|
|
|
|
"repository": "https://github.com/mourner/robust-predicates",
|
|
|
|
"publisher": "Vladimir Agafonkin",
|
|
|
|
"path": "node_modules/robust-predicates",
|
|
|
|
"licenseFile": "node_modules/robust-predicates/LICENSE"
|
|
|
|
},
|
2021-01-26 15:08:57 +01:00
|
|
|
"rw@1.3.3": {
|
|
|
|
"licenses": "BSD-3-Clause",
|
|
|
|
"repository": "https://github.com/mbostock/rw",
|
|
|
|
"publisher": "Mike Bostock",
|
|
|
|
"url": "http://bost.ocks.org/mike",
|
|
|
|
"path": "node_modules/rw",
|
|
|
|
"licenseFile": "node_modules/rw/LICENSE"
|
|
|
|
},
|
|
|
|
"safer-buffer@2.1.2": {
|
|
|
|
"licenses": "MIT",
|
|
|
|
"repository": "https://github.com/ChALkeR/safer-buffer",
|
|
|
|
"publisher": "Nikita Skovoroda",
|
|
|
|
"email": "chalkerx@gmail.com",
|
|
|
|
"url": "https://github.com/ChALkeR",
|
|
|
|
"path": "node_modules/safer-buffer",
|
|
|
|
"licenseFile": "node_modules/safer-buffer/LICENSE"
|
2020-11-12 12:07:59 +01:00
|
|
|
}
|
2020-11-12 10:54:13 +01:00
|
|
|
}
|
|
|
|
|