migrate from perforce
This commit is contained in:
42
packages/Microsoft.TypeScript.MSBuild.5.7.1/build/Microsoft.TypeScript.MSBuild.props
vendored
Normal file
42
packages/Microsoft.TypeScript.MSBuild.5.7.1/build/Microsoft.TypeScript.MSBuild.props
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="..\tools\Microsoft.TypeScript.Default.props" />
|
||||
<PropertyGroup>
|
||||
<TypeScriptNuGetToolsVersion>5.7</TypeScriptNuGetToolsVersion>
|
||||
<EnableTypeScriptNuGetTarget>true</EnableTypeScriptNuGetTarget>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- Copied these properties from Microsoft.typescript.targets to workaround the bug in Azure publishing -->
|
||||
<PublishPipelineCollectFilesCore>
|
||||
$(PublishPipelineCollectFilesCore);
|
||||
FindConfigFiles;
|
||||
CompileTypeScript;
|
||||
CompileTypeScriptWithTSConfig;
|
||||
</PublishPipelineCollectFilesCore>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--The following properties and items help to exclude TS files from the None and Content Item groups added by the .Net Core SDK
|
||||
and to put them in the correct TypeScriptCompile item group-->
|
||||
<PropertyGroup>
|
||||
<DefaultTypeScriptIncludePattern>**\*.ts;**\*.tsx</DefaultTypeScriptIncludePattern>
|
||||
<EnableDefaultTypeScriptItems Condition=" '$(EnableDefaultTypeScriptItems)' == '' ">true</EnableDefaultTypeScriptItems>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Include the TS files in the DefaultItemExcludes property so that they are not considered as None/Content items-->
|
||||
<PropertyGroup>
|
||||
<DefaultItemExcludes>$(DefaultItemExcludes);$(DefaultTypeScriptIncludePattern)</DefaultItemExcludes>
|
||||
</PropertyGroup>
|
||||
|
||||
<!--We need to add the TS files in the TypeScriptCompile item group.
|
||||
MSBuild follows a multi-phase evaluation and the properties get evaluated before items. So at the time of evaluation of TypeScriptCompile item,
|
||||
the DefaultItemExcludes property would also have the TS files since we added them earlier.
|
||||
Hence we need to exclude the TS files from it again-->
|
||||
<ItemGroup Condition="'$(EnableDefaultItems)' == 'true' AND '$(EnableDefaultTypeScriptItems)' == 'true'">
|
||||
<TypeScriptCompile Include="$(DefaultTypeScriptIncludePattern)" Exclude="$(DefaultItemExcludes.Replace('$(DefaultTypeScriptIncludePattern)', ''));$(DefaultExcludesInProjectFolder)" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectCapability Include="TypeScriptNuGet" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
24
packages/Microsoft.TypeScript.MSBuild.5.7.1/build/Microsoft.TypeScript.MSBuild.targets
vendored
Normal file
24
packages/Microsoft.TypeScript.MSBuild.5.7.1/build/Microsoft.TypeScript.MSBuild.targets
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<PropertyGroup>
|
||||
<!--If the MSBuild is used on non-Windows OS (both Mac and Unix has the same $(OS) as Unix),
|
||||
don't pass any toolExe so that VsTsc task will decide what to use between nodejs and node (priority is given to nodejs).
|
||||
"nodejs" is what is called for the newer version of "node".
|
||||
Also pass the tsc.js file to be run with nodejs. This Javascript file is installed by NuGet package -->
|
||||
<TscToolExe Condition="'$(OS)' != 'Windows_NT'"></TscToolExe>
|
||||
<TSJavaScriptFile Condition="'$(OS)' != 'Windows_NT'">$(MSBuildThisFileDirectory)../tools/tsc/tsc.js</TSJavaScriptFile>
|
||||
<!-- Check the default folder for the nuget version of the installer first, if that exists we should use that. -->
|
||||
<TscFolderPath Condition="'$(OS)' == 'Windows_NT'">$(MSBuildThisFileDirectory)..\tools\tsc</TscFolderPath>
|
||||
<!-- MSBuildRuntimeType: The type of the runtime that is currently executing. Introduced in MSBuild 15. Value may be undefined (prior to MSBuild 15)
|
||||
`Full` indicating that MSBuild is running on the desktop .NET Framework.
|
||||
`Core` indicating that MSBuild is running on .NET Core.
|
||||
`Mono` indicating that MSBuild is running on Mono.|Reserved| -->
|
||||
<TypeScriptTaskAssembly Condition="'$(MSBuildRuntimeType)' == 'Core'">$(MSBuildThisFileDirectory)..\tools\netstandard1.3\TypeScript.Tasks.dll</TypeScriptTaskAssembly>
|
||||
<TypeScriptTaskAssembly Condition="'$(TypeScriptTaskAssembly)' == ''">$(MSBuildThisFileDirectory)..\tools\net45\TypeScript.Tasks.dll</TypeScriptTaskAssembly>
|
||||
<TSServerPath>$(MSBuildThisFileDirectory)..\tools\tsc\tsserver.js</TSServerPath>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="..\tools\Microsoft.TypeScript.targets" />
|
||||
<Import Project="$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.DotNetCore.targets"
|
||||
Condition="Exists('$(MSBuildExtensionsPath)\Microsoft\VisualStudio\v$(VisualStudioVersion)\TypeScript\Microsoft.TypeScript.DotNetCore.targets')" />
|
||||
</Project>
|
||||
Reference in New Issue
Block a user