svelte-ts

Svelte Ts

[WIP] Tools for building Svelte apps with TS

Svelte TS

Features

  • Generation of Svelte component declarations
  • TypeScript support in template tags
  • (WIP) Template type checking support
  • (TODO) Sapper integration

Bazel

Getting started

  1. Setup the Node & TS installation for Bazel by following their guide.
  2. Install the related Svelte packages
    $ yarn install svelte sapper
    
  3. Install the @svelte-ts/bazel NPM package
    $ yarn install @svelte-ts/bazel
    

Rules

For further usage take a look in the test directory

  1. Compile TS & Svelte templates using svelte_module ```python load("@npm_svelte_ts_bazel//:index.bzl", "svelte_module")

svelte_module( name = "app", srcs = [ "main.ts", "App.svelte", ], deps = [ "//some/other:dep", ], )


## Rollup
TODO

## Webpack
TODO

Top categories

Loading Svelte Themes