Anki/ts/congrats
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
..
BUILD.bazel Svelte build improvements 2021-10-18 12:44:29 +10:00
congrats-base.scss Put sass into repo directory (#1409) 2021-10-09 10:25:03 +10:00
congrats.html add workaround for protobufjs requiring uppercase package names 2021-07-10 15:24:01 +10:00
CongratsPage.svelte Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
index.ts update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00
lib.ts Refactor i18n (#1405) 2021-10-07 23:31:49 +10:00
tsconfig.json update to latest rules_nodejs & switch to ts_project 2021-10-01 12:52:53 +10:00