Skip to content

Commit 29a446e

Browse files
committed
Naming convention
1 parent 8b790d9 commit 29a446e

83 files changed

Lines changed: 41 additions & 41 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**/*.user
22
/.idea/
33
/.vs/
4-
/bin/
5-
/test/obj/
6-
/var/
4+
/*/obj/
5+
/Binaries/
6+
/Temp/

Invoke.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ param (
44
[Parameter(Position = 0)]
55
[ArgumentCompleter({
66
param ([string] $commandName, [string] $parameterName, [string] $wordToComplete)
7-
(Get-Item "$PSScriptRoot/tool/$wordToComplete*.ps1").BaseName
7+
(Get-Item "$PSScriptRoot/Scripts/$wordToComplete*.ps1").BaseName
88
})]
9-
[ValidateScript({ Test-Path "$PSScriptRoot/tool/$_.ps1" -PathType Leaf }, ErrorMessage = "The specified command does not exist.")]
9+
[ValidateScript({ Test-Path "$PSScriptRoot/Scripts/$_.ps1" -PathType Leaf }, ErrorMessage = "The specified command does not exist.")]
1010
[string] $Command = "Default",
1111

1212
# Value indicating whether to enable the release configuration.
@@ -15,4 +15,4 @@ param (
1515

1616
$ErrorActionPreference = "Stop"
1717
$PSNativeCommandUseErrorActionPreference = $true
18-
& "$PSScriptRoot/tool/$Command.ps1"
18+
& "$PSScriptRoot/Scripts/$Command.ps1"

ReadMe.md

Lines changed: 2 additions & 2 deletions
File renamed without changes.
File renamed without changes.

Scripts/Clean.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
"Deleting all generated files..."
2+
Remove-Item */obj -Force -Recurse
3+
Remove-Item Binaries -ErrorAction Ignore -Force -Recurse
4+
Remove-Item Temp/* -Exclude .gitkeep -Force -Recurse
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,15 @@ function New-GitTag {
3838
function Publish-PSGalleryModule {
3939
$root = Join-Path $PSScriptRoot .. -Resolve
4040

41-
$output = "$root/var/PSModule"
41+
$output = "$root/Temp/PSModule"
4242
New-Item $output -ItemType Directory | Out-Null
4343
Copy-Item $root/Sql.psd1 $output/Belin.Sql.psd1
4444
Copy-Item $root/*.md $output
45-
Copy-Item $root/src $output -Recurse
45+
Copy-Item $root/Sources $output -Recurse
4646

47-
$output = "$root/var/PSGallery"
47+
$output = "$root/Temp/PSGallery"
4848
New-Item $output -ItemType Directory | Out-Null
49-
Compress-PSResource $root/var/PSModule $output
49+
Compress-PSResource $root/Temp/PSModule $output
5050
foreach ($package in Get-Item $output/*.nupkg) { Publish-PSResource -ApiKey $Env:PSGALLERY_API_KEY -NupkgPath $package -Repository PSGallery }
5151
}
5252

0 commit comments

Comments
 (0)