Our TFS 2015 setup incorporates "old" xaml Builds and now I am looking to deploy an Angular 2 website with webpack.
I have successfully installed npm and compiled my project using webpack on the tfs by including a simple Target. Everything seems to be working fine as I can see my node_modules folder and the compiled wwwroot in the tfs temp directory.
<PropertyGroup>
<WebsitePath>$(MSBuildProjectDirectory)/../../Gui/Web/</WebsitePath>
...
</PropertyGroup>
<Target Name="npminstall">
<Exec WorkingDirectory="$(WebsitePath)" Command="npm install" />
<Exec WorkingDirectory="$(WebsitePath)" Command="npm run build:dev" />
</Target>
However, I encounter an error message from the TFS Agent when attempting to compile the .net dlls
Build: Experimental support for decorators is a feature that is subject to change in a future release.
Set the 'experimentalDecorators' option to remove this warning.
I remember facing a similar issue initially with VS and NG2 where I had to make some adjustments to my csproj file
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'DevMvc|AnyCPU'">
<TypeScriptTarget>ES5</TypeScriptTarget>
.
.
.
</PropertyGroup>
Adding these lines resolved the compilation issue in Visual Studio. I've included these lines in my csproj again for the TFS build without success.
In Visual Studio, I currently utilize a tsconfig.json file
{
"compilerOptions": {
.
.
.
}
},
Could someone suggest a solution to enable successful compilation of this project on TFS 2015?
Note that TypeScript 2.0.6 is also installed on the Build Server.