anki/tools
Damien Elmes 9f55cf26fc
Switch to SvelteKit (#3077)
* Update to latest Node LTS

* Add sveltekit

* Split tslib into separate @generated and @tslib components

SvelteKit's path aliases don't support multiple locations, so our old
approach of using @tslib to refer to both ts/lib and out/ts/lib will no
longer work. Instead, all generated sources and their includes are
placed in a separate out/ts/generated folder, and imported via @generated
instead. This also allows us to generate .ts files, instead of needing
to output separate .d.ts and .js files.

* Switch package.json to module type

* Avoid usage of baseUrl

Incompatible with SvelteKit

* Move sass into ts; use relative links

SvelteKit's default sass support doesn't allow overriding loadPaths

* jest->vitest, graphs example working with yarn dev

* most pages working in dev mode

* Some fixes after rebasing

* Fix/silence some svelte-check errors

* Get image-occlusion working with Fabric types

* Post-rebase lock changes

* Editor is now checked

* SvelteKit build integrated into ninja

* Use the new SvelteKit entrypoint for pages like congrats/deck options/etc

* Run eslint once for ts/**; fix some tests

* Fix a bunch of issues introduced when rebasing over latest main

* Run eslint fix

* Fix remaining eslint+pylint issues; tests now all pass

* Fix some issues with a clean build

* Latest bufbuild no longer requires @__PURE__ hack

* Add a few missed dependencies

* Add yarn.bat to fix Windows build

* Fix pages failing to show when ANKI_API_PORT not defined

* Fix svelte-check and vitest on Windows

* Set node path in ./yarn

* Move svelte-kit output to ts/.svelte-kit

Sadly, I couldn't figure out a way to store it in out/ if out/ is
a symlink, as it breaks module resolution when SvelteKit is run.

* Allow HMR inside Anki

* Skip SvelteKit build when HMR is defined

* Fix some post-rebase issues

I should have done a normal merge instead.
2024-03-31 09:16:31 +01:00
..
minilints Switch to SvelteKit (#3077) 2024-03-31 09:16:31 +01:00
build Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
build.bat fix: fix windows build issue (#2947) 2024-01-19 15:48:06 +10:00
clean Add a script to clean build folder 2023-07-03 17:24:27 +10:00
dmypy Migrate pylib/anki qt/aqt to group syntax (eg pylib:anki) 2023-06-15 17:17:55 +10:00
install-n2 Fix n2 missing hide-success code 2023-10-11 13:04:54 +10:00
mac-x86 Add helper script for Intel cross compile on ARM Mac 2023-04-12 15:48:31 +10:00
ninja.bat Fix Windows build 2023-07-02 15:17:29 +10:00
profile Update profiling script 2023-09-14 09:23:44 +10:00
rebuild-web Fix tools/web-watch 2023-06-20 20:40:43 +10:00
reload_webviews.py Tweaks to web-watch 2023-06-26 15:50:34 +10:00
run-qt5.14 Enable webview debugging in Qt5 scripts 2023-11-13 15:20:50 +10:00
run-qt5.15 Enable webview debugging in Qt5 scripts 2023-11-13 15:20:50 +10:00
run-qt5.15.bat Fix run-qt5.15.bat (#2569) 2023-07-10 10:35:43 +10:00
run.py Fix mpv not working out of the box in win32 source build 2023-12-06 11:34:56 +10:00
runopt Move away from Bazel (#2202) 2022-11-27 15:24:20 +10:00
setup-env.bat Fix setup-env.bat (#1659) 2022-02-12 10:10:24 +10:00
unused-rust-deps Remove some unused Rust dependencies 2023-06-24 19:30:29 +10:00
web-watch Tweaks to web-watch 2023-06-26 15:50:34 +10:00