Revert package version to 1.0.0-preview1 and update build tools
This commit is contained in:
parent
1bd99f6b67
commit
69dc7a4b23
|
|
@ -8,7 +8,7 @@ env:
|
|||
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
||||
- DOTNET_CLI_TELEMETRY_OPTOUT: 1
|
||||
- SIGNALR_TESTS_VERBOSE: 1
|
||||
- TRAVIS_NODE_VERSION: 8.0.0
|
||||
- TRAVIS_NODE_VERSION: 8.9.3
|
||||
mono: none
|
||||
os:
|
||||
- linux
|
||||
|
|
@ -26,7 +26,8 @@ branches:
|
|||
- /^(.*\/)?ci-.*$/
|
||||
- /^rel\/.*/
|
||||
before_install:
|
||||
- nvm install $TRAVIS_NODE_VERSION
|
||||
# Pull redis docker image so when test creates container it doesn't time out
|
||||
- if test "$TRAVIS_OS_NAME" == "linux"; then nvm install $TRAVIS_NODE_VERSION; docker pull redis; fi
|
||||
- if test "$TRAVIS_OS_NAME" == "linux"; then docker pull redis; fi
|
||||
script:
|
||||
- ./build.sh
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
<ItemGroup>
|
||||
<ProjectsToPack Include="$(RepositoryRoot)client-ts\Microsoft.AspNetCore.SignalR.Client.TS\*.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<!-- These properties are use by the automation that updates dependencies.props -->
|
||||
<LineupPackageId>Internal.AspNetCore.Universe.Lineup</LineupPackageId>
|
||||
|
|
|
|||
|
|
@ -5,8 +5,11 @@
|
|||
<IsPackable>false</IsPackable>
|
||||
</PropertyGroup>
|
||||
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
||||
|
||||
<PropertyGroup>
|
||||
<SignalRClientDistFolder>$(MSBuildThisFileDirectory)..\dist\</SignalRClientDistFolder>
|
||||
<OutputFileName>aspnet-signalr-client-$(PackageVersion).tgz</OutputFileName>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
@ -30,26 +33,30 @@
|
|||
<RemoveDir Directories="$(SignalRClientDistFolder)" />
|
||||
</Target>
|
||||
|
||||
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />
|
||||
|
||||
<Target Name="Pack">
|
||||
<Message Text="Creating TypeScript client Node module" Importance="High" />
|
||||
<Exec Command="node -pe "require('./package.json').version"" ConsoleToMSBuild="true" WorkingDirectory="$(MSBuildThisFileDirectory)..">
|
||||
<Output TaskParameter="ConsoleOutput" ItemName="ExecOutput" />
|
||||
</Exec>
|
||||
|
||||
<PropertyGroup>
|
||||
<ModuleVersion>@(ExecOutput)</ModuleVersion>
|
||||
<ModuleVersion Condition="'$(VersionSuffix)' != ''">$(ModuleVersion)-$(VersionSuffix)</ModuleVersion>
|
||||
<IsGitRepository Condition="EXISTS('$(MSBuildThisFileDirectory)..\..\.git\HEAD')">true</IsGitRepository>
|
||||
<IsGitRepository Condition="'$(IsGitRepository)'==''">false</IsGitRepository>
|
||||
</PropertyGroup>
|
||||
<Exec Command="npm version $(ModuleVersion)" WorkingDirectory="$(MSBuildThisFileDirectory).." Condition="'$(VersionSuffix)' != ''" />
|
||||
<Exec Command="npm pack" WorkingDirectory="$(MSBuildThisFileDirectory).." />
|
||||
<Exec Command="git checkout HEAD -- "$(MSBuildThisFileDirectory)../package.json"" Condition="$(IsGitRepository) AND '$(VersionSuffix)' != ''" />
|
||||
<Exec Command="git checkout HEAD -- "$(MSBuildThisFileDirectory)../package-lock.json"" Condition="$(IsGitRepository) AND '$(VersionSuffix)' != ''" />
|
||||
|
||||
<Exec Command="npm version $(PackageVersion) --allow-same-version" WorkingDirectory="$(MSBuildThisFileDirectory)..\" />
|
||||
<Exec Command="npm pack" WorkingDirectory="$(MSBuildThisFileDirectory)..\" />
|
||||
<Exec Command="git checkout HEAD -- "$(MSBuildThisFileDirectory)../package.json"" Condition="$(IsGitRepository)" />
|
||||
<Exec Command="git checkout HEAD -- "$(MSBuildThisFileDirectory)../package-lock.json"" Condition="$(IsGitRepository)" />
|
||||
<Move SourceFiles="$(MSBuildThisFileDirectory)..\$(OutputFileName)" DestinationFolder="$(PackageOutputPath)" />
|
||||
</Target>
|
||||
|
||||
<!-- Provides information to the bill of materials about expected outputs. -->
|
||||
<Target Name="GetNpmArtifactInfo" BeforeTargets="GetArtifactInfo" Returns="@(ArtifactInfo)">
|
||||
<ItemGroup>
|
||||
<TSClient Include="$(MSBuildThisFileDirectory)../aspnet-signalr-client*.tgz" />
|
||||
<ArtifactInfo Include="$(PackageOutputPath)$(OutputFileName)">
|
||||
<ArtifactType>NpmPackage</ArtifactType>
|
||||
<PackageId>@aspnet/signalr-client</PackageId>
|
||||
<Version>$(PackageVersion)</Version>
|
||||
</ArtifactInfo>
|
||||
</ItemGroup>
|
||||
<Move SourceFiles="@(TSClient)" DestinationFolder="$(PackageOutputPath)" />
|
||||
</Target>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@aspnet/signalr-client",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.0-preview1-t000",
|
||||
"lockfileVersion": 1,
|
||||
"requires": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@aspnet/signalr-client",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.0-preview1-t000",
|
||||
"description": "ASP.NET Core SignalR",
|
||||
"main": "dist/src/index.js",
|
||||
"typings": "dist/src/index.d.ts",
|
||||
|
|
|
|||
|
|
@ -1,2 +1,2 @@
|
|||
version:2.1.0-preview1-15620
|
||||
commithash:6432b49a2c00310416df39b6fe548ef4af9c6011
|
||||
version:2.1.0-preview1-15640
|
||||
commithash:d6afce1c3b1f25f1b9d3587c21475dad25af4ef5
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
"toolsets": {
|
||||
"nodejs": {
|
||||
"required": true,
|
||||
"minVersion": "6.9"
|
||||
"minVersion": "8.0"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<Project>
|
||||
<PropertyGroup>
|
||||
<VersionPrefix>2.1.0</VersionPrefix>
|
||||
<VersionPrefix>1.0.0</VersionPrefix>
|
||||
<VersionSuffix>preview1</VersionSuffix>
|
||||
<PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' == 'rtm' ">$(VersionPrefix)</PackageVersion>
|
||||
<PackageVersion Condition="'$(IsFinalBuild)' == 'true' AND '$(VersionSuffix)' != 'rtm' ">$(VersionPrefix)-$(VersionSuffix)-final</PackageVersion>
|
||||
|
|
|
|||
Loading…
Reference in New Issue