mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
After building "dotnet new" package, put it in "artifacts" dir
This commit is contained in:
@@ -193,6 +193,8 @@ function buildDotNetNewNuGetPackage() {
|
|||||||
|
|
||||||
// Clean up
|
// Clean up
|
||||||
rimraf.sync('./tmp');
|
rimraf.sync('./tmp');
|
||||||
|
|
||||||
|
return glob.sync(path.join(outputRoot, './*.nupkg'))[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
function runAllPrepublishScripts() {
|
function runAllPrepublishScripts() {
|
||||||
@@ -226,7 +228,10 @@ rimraf.sync(distDir);
|
|||||||
mkdirp.sync(artifactsDir);
|
mkdirp.sync(artifactsDir);
|
||||||
runAllPrepublishScripts();
|
runAllPrepublishScripts();
|
||||||
buildYeomanNpmPackage(yeomanOutputRoot);
|
buildYeomanNpmPackage(yeomanOutputRoot);
|
||||||
buildDotNetNewNuGetPackage();
|
const dotNetNewNupkgPath = buildDotNetNewNuGetPackage();
|
||||||
|
|
||||||
|
// Move the .nupkg file to the artifacts dir
|
||||||
|
fs.renameSync(dotNetNewNupkgPath, path.join(artifactsDir, path.basename(dotNetNewNupkgPath)));
|
||||||
|
|
||||||
// Finally, create a .tar.gz file containing the built generator-aspnetcore-spa.
|
// Finally, create a .tar.gz file containing the built generator-aspnetcore-spa.
|
||||||
// The CI system can treat this as the final built artifact.
|
// The CI system can treat this as the final built artifact.
|
||||||
|
|||||||
Reference in New Issue
Block a user