Anki/ts
Damien Elmes e948544b59 use local strategy for Svelte on CI
Allows some type errors to surface that were only being picked up
on Windows.

The root cause seems to be TypeScript picking up other .d.ts/.tsx
files in the same folder, which it can only do on Windows due to the
lack of sandboxing. On other platforms the other files can't be found,
and tsc changes the types into 'any'.

I experimented with modifying rules_svelte to build all .tsx files up
front and convert them to .d.ts in bulk, but ran into further issues
with conflicting types, as the typings in svelte2tsx seem to conflict
with Svelte's built-in types, and passing the dependencies in explicitly
causes them to be checked even though --skipLibCheck is passed in to
TypeScript.

Forcing sandboxing off is an ugly hack, and our best approach moving
forward may be to switch to ts_project for the Svelte generation -
it does appear that rules_nodejs favours it over ts_library anyway.
2020-12-29 14:50:33 +10:00
..
congrats format_fix -> format; rename svelte-check for consistency 2020-11-12 20:19:32 +10:00
graphs use local strategy for Svelte on CI 2020-12-29 14:50:33 +10:00
lib plural rules and decimal separator should use bundle's language 2020-12-14 14:23:49 +10:00
patches update to rules_nodejs 3.0.0 2020-12-23 16:05:15 +10:00
sass initial Bazel conversion 2020-11-01 14:26:58 +10:00
vendor initial Bazel conversion 2020-11-01 14:26:58 +10:00
.eslintrc.js initial Bazel conversion 2020-11-01 14:26:58 +10:00
.gitignore Add Mathjax filegroup 2020-11-14 14:14:25 +01:00
.prettierignore make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
.prettierrc initial Bazel conversion 2020-11-01 14:26:58 +10:00
BUILD.bazel add rule to copy mathjax from node_modules 2020-11-15 20:22:28 +10:00
copy.bzl Remove jquery from Anki repo and replace with Bazel BUILD 2020-12-28 13:16:12 +01:00
eslint.bzl initial Bazel conversion 2020-11-01 14:26:58 +10:00
format.sh make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
jquery.bzl Remove jquery from Anki repo and replace with Bazel BUILD 2020-12-28 13:16:12 +01:00
licenses.json bump ts deps 2020-12-09 15:47:34 +10:00
mathjax.bzl Remove jquery from Anki repo and replace with Bazel BUILD 2020-12-28 13:16:12 +01:00
package.json Remove jquery from Anki repo and replace with Bazel BUILD 2020-12-28 13:16:12 +01:00
prettier.bzl make 'bazel run ts:format' work 2020-11-12 20:49:00 +10:00
README.md minor doc updates 2020-12-11 22:37:12 +10:00
rollup.config.js initial Bazel conversion 2020-11-01 14:26:58 +10:00
svelte.bzl initial Bazel conversion 2020-11-01 14:26:58 +10:00
tsconfig.json fix path to anki lib in ts/ when editing 2020-12-16 14:15:49 +10:00
update.sh relative js package paths 2020-11-12 21:07:59 +10:00
yarn.lock Remove jquery from Anki repo and replace with Bazel BUILD 2020-12-28 13:16:12 +01:00

Anki's TypeScript and Sass dependencies. Some TS/JS code is also stored separately in ../qt/aqt/data/web/.

To add a new dev dependency, use something like:

bazel run @nodejs//:yarn add @rollup/plugin-alias -- -D