Skip to content

tomasr78/WebOptimizer.TypeScript

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A TypeScript compiler for ASP.NET Core

Build status NuGet

This package compiles TypeScript, ES6 and JSX files into ES5 by hooking into the LigerShark.WebOptimizer pipeline.

Usage

You can reference any TypeScript file directly in the browser and a compiled ES5 JavaScript document will be served. To set that up, do this:

services.AddWebOptimizer(pipeline =>
{
    pipeline.CompileTypeScirptFiles();
});

Or if you just want to parse specific TypeScript files, do this:

services.AddWebOptimizer(pipeline =>
{
    pipeline.CompileTypeScriptFiles("/path/file1.ts", "/path/file2.ts");
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 79.1%
  • Batchfile 17.8%
  • JavaScript 3.1%