Anki is a smart spaced repetition flashcard program
Find a file
Damien Elmes 1f876cfe39 Svelte build improvements
1. All Svelte files in a package are compiled in one step now, which
ensures that properties that use types from a different Svelte file in the
same package are typed correctly. The single-file svelte() has been removed,
and compile_svelte() may be renamed to svelte() in the future.

2. The .ts files in the same package are included as part of the Svelte
compilation, so that types imported imported from .ts files in the
same package work.

3. Dependencies passed into the rule are now loaded into the TypeScript
compiler, so that properties referencing types from different packages
work. We'll need to update our compile_svelte() lines to list the
dependencies. For example, before this change:

% cat bazel-bin/ts/congrats/CongratsPage.svelte.d.ts
import { SvelteComponentTyped } from "svelte";
declare const __propDef: {
    props: {
        info: any;
    };
...

After adding //ts/lib to the deps of compile_svelte() in ts/congrats:

% cat bazel-bin/ts/congrats/CongratsPage.svelte.d.ts
import { SvelteComponentTyped } from "svelte";
import type { Scheduler } from "../lib/proto";
declare const __propDef: {
    props: {
        info: Scheduler.CongratsInfoResponse;
    };
...
2021-10-18 12:44:29 +10:00
.buildkite move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
.github/ISSUE_TEMPLATE add issue template config.yml 2021-02-19 14:11:21 +10:00
cargo add aarch64-apple to Rust targets 2021-10-16 18:07:39 +10:00
docs get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00
ftl Merge pull request #1399 from abdnh/addon-homepage-manifest-prop 2021-10-01 21:52:00 +10:00
pip fix qtwebengineprocess failing to load on darwin-aarch64 2021-10-16 18:07:39 +10:00
platforms use x86 binaries for clang format/protobuf on Mac 2021-10-16 18:07:39 +10:00
proto use x86 binaries for clang format/protobuf on Mac 2021-10-16 18:07:39 +10:00
pylib add aarch64-apple to Rust targets 2021-10-16 18:07:39 +10:00
qt get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00
rslib unbury when rendering deck list 2021-10-16 21:11:09 +10:00
sass Put sass into repo directory (#1409) 2021-10-09 10:25:03 +10:00
scripts expose pyqt6 packages - not yet used 2021-10-15 10:47:53 +10:00
ts Svelte build improvements 2021-10-18 12:44:29 +10:00
.bazelignore move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
.bazelrc default to a vendored copy of Python 2021-10-15 22:14:05 +10:00
.bazelversion update Bazel version 2021-10-01 20:54:48 +10:00
.gitattributes try again to improve GitHub's language stats 2021-01-20 13:20:45 +10:00
.gitignore move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
.prettierignore Fix prettier after moving node_modules to repo dir (#1413) 2021-10-09 10:13:14 +10:00
.prettierrc Fix prettier after moving node_modules to repo dir (#1413) 2021-10-09 10:13:14 +10:00
bazel.bat initial Bazel conversion 2020-11-01 14:26:58 +10:00
BUILD.bazel Fix prettier after moving node_modules to repo dir (#1413) 2021-10-09 10:13:14 +10:00
Cargo.lock Switch CardInfoDialog to ts page (#1414) 2021-10-14 19:22:47 +10:00
Cargo.toml add aarch64-apple to Rust targets 2021-10-16 18:07:39 +10:00
CONTRIBUTORS add new hook: add_cards_did_change_deck (#1420) 2021-10-12 17:55:21 +10:00
defs.bzl switch to node 16.x for macOS aarch64 support 2021-10-16 18:07:39 +10:00
late_deps.bzl download wheels using rules_python 2021-10-15 16:02:26 +10:00
LICENSE move aqt_data into source folder; implement wheel building 2020-11-04 12:14:03 +10:00
package.json move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
pkgkey.asc add public key for release signing 2018-09-18 10:40:45 +10:00
python.bzl default to a vendored copy of Python 2021-10-15 22:14:05 +10:00
README.md fix build badge 2021-06-24 09:21:56 +10:00
repos.bzl drop rules_pip 2021-10-16 16:54:35 +10:00
run get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00
run-qt5 get PyQt working directly with ./run on macOS 2021-10-16 18:07:29 +10:00
run.bat enable Python warnings when running 2020-12-16 14:59:04 +10:00
SECURITY.md add SECURITY.md 2021-09-22 22:55:19 +10:00
WORKSPACE move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00
yarn.lock move node_modules into root folder [action required] 2021-10-07 11:42:27 +10:00

Anki

Build status

This repo contains the source code for the computer version of Anki.

If you'd like to try development builds of Anki but don't feel comfortable building the code, please see https://betas.ankiweb.net/

For more information on building, please see Development.