- Generation of Svelte component declarations
- TypeScript support in template tags
- (WIP) Template type checking support
- (TODO) Sapper integration
- Setup the Node & TS installation for Bazel by following their guide.
- Install the related Svelte packages
$ yarn install svelte sapper
- Install the
@svelte-ts/bazel
NPM package$ yarn install @svelte-ts/bazel
For further usage take a look in the test directory
- Compile TS & Svelte templates using
svelte_module
load("@npm_svelte_ts_bazel//:index.bzl", "svelte_module")
svelte_module(
name = "app",
srcs = [
"main.ts",
"App.svelte",
],
deps = [
"//some/other:dep",
],
)
TODO
TODO