mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Change Microsoft.DotNet.Web.Spa.ProjectTemplates to use non-prerelease version number in NuGet package
This commit is contained in:
@@ -91,20 +91,13 @@ function copyRecursive(sourceRoot: string, destRoot: string, matchGlob: string)
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function leftPad(str: string, minLength: number, padChar: string) {
|
|
||||||
while (str.length < minLength) {
|
|
||||||
str = padChar + str;
|
|
||||||
}
|
|
||||||
return str;
|
|
||||||
}
|
|
||||||
|
|
||||||
function getBuildNumber(): string {
|
function getBuildNumber(): string {
|
||||||
if (process.env.APPVEYOR_BUILD_NUMBER) {
|
if (process.env.APPVEYOR_BUILD_NUMBER) {
|
||||||
return leftPad(process.env.APPVEYOR_BUILD_NUMBER, 6, '0');
|
return process.env.APPVEYOR_BUILD_NUMBER;
|
||||||
}
|
}
|
||||||
|
|
||||||
// For local builds, use timestamp
|
// For local builds, use timestamp
|
||||||
return 't-' + Math.floor((new Date().valueOf() - new Date(2017, 0, 1).valueOf()) / (60*1000));
|
return Math.floor((new Date().valueOf() - new Date(2017, 0, 1).valueOf()) / (60*1000)) + '-local';
|
||||||
}
|
}
|
||||||
|
|
||||||
function buildYeomanNpmPackage(outputRoot: string) {
|
function buildYeomanNpmPackage(outputRoot: string) {
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>Microsoft.DotNet.Web.Spa.ProjectTemplates</id>
|
<id>Microsoft.DotNet.Web.Spa.ProjectTemplates</id>
|
||||||
<version>1.0.0-preview-{buildnumber}</version>
|
<version>1.0.{buildnumber}</version>
|
||||||
<description>Single Page Application templates for ASP.NET Core</description>
|
<description>Single Page Application templates for ASP.NET Core</description>
|
||||||
<authors>Microsoft</authors>
|
<authors>Microsoft</authors>
|
||||||
<language>en-US</language>
|
<language>en-US</language>
|
||||||
|
|||||||
Reference in New Issue
Block a user