-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpakefile.ps1
35 lines (31 loc) · 1014 Bytes
/
pakefile.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
function InitModule {
New-ModuleManifest -Path .\surmene\surmene.psd1 `
-ModuleVersion 0.0.1 `
-Author "Ahmed Guneysu" `
-CompanyName "---" `
-Copyright "---" `
-Description "PowerShell helper for daily usage" `
-Guid $([guid]::NewGuid().Guid) `
-Tags "PSModule" `
-RootModule "surmene.psm1" `
-ProjectUri "https://github.com/guneysus/surmene" `
-LicenseUri "https://raw.githubusercontent.com/guneysus/surmene/master/LICENSE" `
-Confirm -PassThru
}
function Test {
(powershell -Command {
$env:PSModulePath += ";$(Get-Location)"
import-module surmene
Get-Location
..
Show-Path
Get-Location
remove-module surmene
})
}
function Publish {
# Register-PSRepository -Name "guneysu" -SourceLocation "https://www.myget.org/F/guneysu/api/v2"
Publish-Module -Path .\surmene `
-Repository guneysu `
-NuGetApiKey $env:NUGET_API_KEY
}