Name: WebOptimizer.TypeScript
Owner: LigerShark
Description: null
Created: 2017-09-08 20:55:42.0
Updated: 2017-12-12 20:05:30.0
Pushed: 2017-11-21 17:48:29.0
Homepage: null
Size: 526
Language: C#
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
This package compiles TypeScript, ES6 and JSX files into ES5 by hooking into the LigerShark.WebOptimizer pipeline.
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:
ices.AddWebOptimizer(pipeline =>
pipeline.CompileTypeScirptFiles();
Or if you just want to parse specific TypeScript files, do this:
ices.AddWebOptimizer(pipeline =>
pipeline.CompileTypeScriptFiles("/path/file1.ts", "/path/file2.ts");