Skip to content

Commit

Permalink
Add option to override the nuget feed used by command line argument
Browse files Browse the repository at this point in the history
  • Loading branch information
tehcrashxor committed Aug 30, 2024
1 parent c9f84d2 commit c4c0897
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gulpfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,22 @@ async function nugetInstall(nugetSource, packageName, version, targetDir) {
// https://dev.azure.com/msazure/One/_packaging?_a=feed&feed=CAP_ISVExp_Tools_Daily
baseUrl: 'https://pkgs.dev.azure.com/msazure/_packaging/b0441cf8-0bc8-4fad-b126-841a6184e784/nuget/v3/flat2/'
},
'DPX-Tools-Upstream' : {
authenticated: true,
// https://dev.azure.com/dynamicscrm/OneCRM/_artifacts/feed/DPX-Tools-Upstream
baseUrl: "https://pkgs.dev.azure.com/dynamicscrm/OneCRM/_packaging/1b55351d-c15e-45b3-9454-70a9549af804/nuget/v3/flat2/"
},
'PowerPortalPackages': {
authenticated: true,
// https://dynamicscrm.visualstudio.com/DefaultCollection/OneCRM/_packaging?_a=feed&feed=PowerPortalPackages
baseUrl: 'https://pkgs.dev.azure.com/dynamicscrm/b276c3e1-2902-46bd-a686-484157b97f48/_packaging/63f896c0-b555-4017-a932-9063f2e7487e/nuget/v3/flat2/'
},
}

const selectedFeed = feeds[nugetSource];
// Override the feed used if specified by the --useFeed argument
const selectedFeedName = argv.useFeed || nugetSource;

const selectedFeed = feeds[selectedFeedName];
const baseUrl = selectedFeed.baseUrl;

packageName = packageName.toLowerCase();
Expand Down Expand Up @@ -267,6 +275,7 @@ const updateDist = gulp.series(

export {
clean,
restore,
compile,
recompile,
lint,
Expand Down

0 comments on commit c4c0897

Please sign in to comment.