Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.
/ svelte-ts Public archive

[WIP] Tools for building Svelte apps with TS

License

Notifications You must be signed in to change notification settings

marcus-sa/svelte-ts

Repository files navigation

Svelte TS

asciicast

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
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

About

[WIP] Tools for building Svelte apps with TS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published