/// <summary> /// Compiles TypeScript files into JavaScript (ES5) and makes them servable in the browser. /// </summary> /// <param name="pipeline">The asset pipeline.</param> public static IEnumerable <IAsset> TranspileJavaScriptFiles(this IAssetPipeline pipeline) { return(pipeline.CompileTypeScriptFiles("**/*.js", "**/*.jsx")); }
/// <summary> /// Compiles the specified TypeScript files into JavaScript (ES5) and makes them servable in the browser. /// </summary> /// <param name="pipeline">The pipeline object.</param> /// <param name="sourceFiles">A list of relative file names of the sources to compile.</param> public static IEnumerable <IAsset> TranspileJavaScriptFiles(this IAssetPipeline pipeline, params string[] sourceFiles) { return(pipeline.CompileTypeScriptFiles(sourceFiles)); }