-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added instructions on how to setup local file based repo
- Loading branch information
unknown
committed
Aug 23, 2024
1 parent
8403371
commit f664f01
Showing
3 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Instructions | ||
|
||
## Setting up local repo | ||
- Create a directory `C:\Workspace\LocalRepo\LocalPSRepo\Packages\`. This directory will hold all the PS packages hosted locally. | ||
- Update the location of the directory in `Register-LocalPSRepo.ps1` powershell script. | ||
- Execute the script `src\Register-LocalPSRepo.ps1` to register the `LocalPSRepo` repository. | ||
|
||
## UnRegister local repo | ||
- Execute the command `UnRegister-PSRepository <repo-name>` | ||
|
||
## Publish local change to the local repo | ||
- To publish changes to local repo created above, execute the ps script `src\PublishOnLocalRepo.ps1` | ||
- Ensure you update the `$localRepoPath` variable in the above script to the LocalPSRepo package directory location. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Register a NuGet-based server | ||
$registerPSRepositorySplat = @{ | ||
Name = 'LocalPSRepo' | ||
SourceLocation = 'C:\Workspace\LocalRepo\LocalPSRepo\Packages\' | ||
ScriptSourceLocation = 'C:\Workspace\LocalRepo\LocalPSRepo\Packages\' | ||
InstallationPolicy = 'Trusted' | ||
} | ||
Register-PSRepository @registerPSRepositorySplat |