Skip to content

Minimal Deno example with painless client-side TypeScript

Notifications You must be signed in to change notification settings

elisee/minimal-deno

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Minimal Deno with client-side TypeScript

This is a minimal Deno 2 server example that lets you use TypeScript for client-side code too.

No bundling or extra compilation required, TypeScript files are transpiled to JavaScript on-the-fly using Sucrase.

In production, you'll want to do some caching to avoid reloading the files from disk for each request. You can either add a simple map that keeps the bytes in memory for each URL once they've been loaded once, or put your app behind some kind of proxy server like Cloudflare.

Running the server

deno -A server/mod.ts

About

Minimal Deno example with painless client-side TypeScript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published