-
-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathPSMDTemplate.ps1
More file actions
42 lines (42 loc) · 1.13 KB
/
PSMDTemplate.ps1
File metadata and controls
42 lines (42 loc) · 1.13 KB
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
36
37
38
39
40
41
42
@{
TemplateName = 'PSFProject'
Version = "1.3.4"
AutoIncrementVersion = $true
Tags = 'module','psframework'
Author = 'Friedrich Weinmann'
Description = 'Comprehensive PSFramework project scaffold (no new folder) with advanced GUID/date scripts, test result setup, build + test config & version capture'
Exclusions = @("PSMDInvoke.ps1", ".PSMDDependency") # Contains list of files - relative path to root - to ignore when building the template
Scripts = @{
guid = {
[System.Guid]::NewGuid().ToString()
}
date = {
Get-Date -Format "yyyy-MM-dd"
}
year = {
Get-Date -Format "yyyy"
}
guid2 = {
[System.Guid]::NewGuid().ToString().ToUpper()
}
guid3 = {
[System.Guid]::NewGuid().ToString().ToUpper()
}
guid4 = {
[System.Guid]::NewGuid().ToString().ToUpper()
}
psframework = {
(Get-Module PSFramework).Version.ToString()
}
testfolder = {
@'
Write-PSFMessage -Level Important -Message "Creating test result folder"
$null = New-Item -Path "$PSScriptRoot\..\.." -Name TestResults -ItemType Directory -Force
'@
}
pesterconfig = {
'$config.TestResult.Enabled = $true'
}
}
NoFolder = $true
}