GithubHelp home page GithubHelp logo

ayame113 / ts-serve Goto Github PK

View Code? Open in Web Editor NEW
39.0 39.0 2.0 81 KB

Transpile TypeScript on the fly and deliver it from your server as ES Modules.

Home Page: https://deno.land/x/ts_serve

License: MIT License

TypeScript 99.18% JavaScript 0.09% HTML 0.73%
deno deno-deploy denodeploy

ts-serve's Introduction

Works

  • fast favicon:コピペで設定完了する絵文字faviconジェネレーター。
  • atom-ide-deno:Denoユーザー向けのAtom Editor拡張機能。1400回ダウンロードされたらしいです。
  • ts-serve:TypeScriptのビルド付きサーバー。TypeScriptがブラウザで動く。
  • jsonlines:1行JSONをストリーミングするライブラリ。ブラウザ / Deno / Node.jsで動作します。
  • mock-file:DenoのファイルシステムAPIのポリフィル。deno deployなどのAPIが制限された環境下で役立ちます。
  • flaky_test:テストのフレークネス(不安定)に対処するためのDeno向けライブラリです。
  • 103 Early Hints:Denoのサーバーで103 Early Hintsを出すサーバー実装

Language and Tools

HTML / CSS 7year 個人開発でWebサイトを運営しています。
JavaScript 5year Webサイト構築やライブラリ作成に日常的に使用しています。
TypeScript 2year Webサイト構築やライブラリ作成に日常的に使用しています。
PHP 4year 一部のWebサイトのバックエンド構築に利用していました。
Python 4year 大学/大学院での研究やデスクトップアプリケーション開発に利用しています。
MySQL / SQLite 4year Webサイト構築の際にデータベースとしてに利用しています。
GitHub Actions 2year テスト自動化やビルド・リリースに使用。
Markdown 2year これを書いています。

JavaScript runtime

🦕Deno 2year
  • v1.5リリース時から使っています。
  • Deno向けライブラリを複数公開しています。
  • Denoの開発にOSSコントリビューターとして参加しています。
🦕deno deploy 1year 初期リリース時から使っています。
Node.js 2year Atom Editor向け拡張機能(パッケージ)開発に利用しています。

OSS contribute


Blog post

ts-serve's People

Contributors

ayame113 avatar github-actions[bot] 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

Watchers

 avatar

Forkers

xuybin jiawei397

ts-serve's Issues

Don't lazy load wasm

The wasm files are currently lazily loaded, so the first transpile takes a few seconds. This is long. I think you need to change it to read the wasm file as soon as the module is loaded.

compile TypeScript folder in advance

Is there any way to compile the target TypeScript folder in advance?

In addition, it would be better if you could control whether to generate sourcemap.

support CLI entrypoint

something like this

deno run --allow-net --allow-read https://deno.land/x/ts_serve@.../xxxxxx.ts
> HTTP server listening on http://localhost:4507/

Error on Deno Deploy using serveFileWithTs

First of all, thank you so much for this great library! I've implemented it in my Simple Deno Website Boilerplate, but it's failing on Deno Deploy:

Uncaught SyntaxError: The requested module 'https://deno.land/[email protected]/http/file_server.ts' does not provide an export named 'ServeDirOptions'
    at https://deno.land/x/[email protected]/mod.ts:1:20

Screenshot from 2022-07-30 10-51-30

It's quite weird because I can see the export does exist in std and has for a while, maybe it's a Deno Deploy runtime issue (I've asked in the Discord server and also created an issue at denoland/deploy_feedback#252), but wanted to log here in case someone else sees it.

What wasm file?

Optionally, calling the fourceInstantiateWasm function before starting the server will force the wasm file to be read ahead. Otherwise the wasm file will take about 3 seconds to load the first time it is transpiled.

It seems like the documentation in this area could be a little clearer about what wasm file is being instantiated and why its needed at all.

Consider more plugins

  • TypeScript to JavaScript
  • TSX to JavaScript
  • JSX to JavaScript
  • Markdown to HTML
  • png to webp
  • jpeg to webp
  • sass to css
  • scdd to css
  • ejs to HTML
  • and more...

consider v2

  • implement plugin system #33
  • #18
  • rename repository name and libraly name

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.