Giter Club home page Giter Club logo

svelte-ts's Introduction

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

svelte-ts's People

Contributors

marcus-sa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gurjeet

svelte-ts's Issues

Track type checking implementations

Common:

  • Attribute identifiers are declared

Components:

  • Attributes used in template are declared on component as properties
  • Identifier is available in template through import declaration

Installation instructions

This project looks fantastic, thank you for sharing!

As it stands, the package @svelte-ts/bazel npm package referenced in the README does not seem to exist. Understanding that the project is still a WIP, what would be the best way to install and try this out at this time?

Add support for Bazel workers

Somehow there's an issue where the build will exit with an error code of 1, but everything seems to be built as it should.

SSR

SSR components should be generated besides the DOM components and suffixed by .ssr.svelte.js

Svelte compiler options

Should be inherited from tsconfig.json like so:

{
  "svelteCompilerOptions": {
    "hydratable": true
  }
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.