To use Weld install the NuGet package:
Install-Package Weld


To integrate nicely with Typescript compilation make sure Weld is run first after which tsc can create the js. Like this:
 <Target Name="TypeScript" AfterTargets="WeldAfterbuild">
    <Exec Command="&quot;$(PROGRAMFILES)\Microsoft SDKs\TypeScript\tsc&quot;     @(TypeScriptCompile ->'&quot;%(fullpath)&quot;', ' ')" />
  </Target>
  <Target Name="WeldAfterbuild" AfterTargets="AfterBuild">
    <Exec Command="&quot;.\..\packages\Weld.1.0.0\tools\Weld.console&quot; bin\$(TargetFileName) &quot;$(ProjectDir)\Scripts\Weld&quot;" />
  </Target>
Use the source code tab to download the project.

More documentation can be found on my blog at http://blog.simplecode.eu

Last edited Jun 1, 2013 at 9:44 PM by gluip, version 4

Comments

No comments yet.