Skip to content

Commit a2956ad

Browse files
committed
new build
1 parent d2c1c91 commit a2956ad

17 files changed

Lines changed: 77 additions & 32 deletions

buildreports/CodeHealthReport-Private.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h1>
189189
<div class="col-sm-4 col-md-5 col-lg-4 right-header">
190190
<h5>
191191
Analyzed path :<span class="right-header-data"> src\private</span><br>
192-
Analysis date :<span class="right-header-data"> 2019-12-17 15:46:25Z</span>
192+
Analysis date :<span class="right-header-data"> 2019-12-17 22:57:32Z</span>
193193
</h5>
194194
</div>
195195
</div>

buildreports/CodeHealthReport-Public.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ <h1>
189189
<div class="col-sm-4 col-md-5 col-lg-4 right-header">
190190
<h5>
191191
Analyzed path :<span class="right-header-data"> src\public</span><br>
192-
Analysis date :<span class="right-header-data"> 2019-12-17 15:45:21Z</span>
192+
Analysis date :<span class="right-header-data"> 2019-12-17 22:54:14Z</span>
193193
</h5>
194194
</div>
195195
</div>

docs/Contributing.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All base project documentation changes should be made against the .\build\docs\A
1010
Finally, the Function documentation gets generated automatically based on the comment based help on each public/exported function. The function documentation markdown automatically gets populated within the .\docs\Functions folder as well as with the module release under its own docs folder. Private function CBH is not required but is encouraged.
1111

1212
## Development Environment
13-
While any text editor will work well there are included task and setting json files explicitly for Visual Studio Code included with this project. I used VS Code Insiders edition but standard edition should be fine as ewll. The following tasks have been defined to make things a bit easier. First access the 'Pallette' (Shift+Ctrl+P or Shift+Cmd+P) and start typing in any of the following tasks to find and run them:
13+
While any text editor will work well there are included task and setting json files explicitly for Visual Studio Code included with this project. I used VS Code Insiders edition but standard edition should be fine as well. The following tasks have been defined to make things a bit easier. First access the 'Pallette' (Shift+Ctrl+P or Shift+Cmd+P) and start typing in any of the following tasks to find and run them:
1414

1515
- Build -> Runs the Build task (also can use Shift+Ctrl+B or Shift+Cmd+B)
1616
- Analyze -> Runs PSScriptAnalyzer against the src/public files.

plaster/ModuleBuild/plasterManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
templateType="Project" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1">
55
<metadata>
66
<name>ModuleBuild</name>
7-
<id>e5d606f6-1f64-4bbc-8f76-d657bf9d545b</id>
7+
<id>5d42d498-a428-482b-8be7-d4670b8aac5b</id>
88
<version>0.0.1</version>
99
<title>New ModuleBuild Project</title>
1010
<description>Create a new PowerShell Module with a ModuleBuild wrapper</description>
@@ -315,5 +315,8 @@
315315
source="scaffold\appveyor.yml"
316316
destination="appveyor.yml"
317317
condition="$PLASTER_PARAM_CICD -eq &quot;appveyor&quot;" />
318+
<file
319+
source="scaffold\Requirements.psd1"
320+
destination="Requirements.psd1" />
318321
</content>
319322
</plasterManifest>
Binary file not shown.
Binary file not shown.

release/0.2.4/plaster/ModuleBuild/plasterManifest.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
templateType="Project" xmlns="http://www.microsoft.com/schemas/PowerShell/Plaster/v1">
55
<metadata>
66
<name>ModuleBuild</name>
7-
<id>e5d606f6-1f64-4bbc-8f76-d657bf9d545b</id>
7+
<id>5d42d498-a428-482b-8be7-d4670b8aac5b</id>
88
<version>0.0.1</version>
99
<title>New ModuleBuild Project</title>
1010
<description>Create a new PowerShell Module with a ModuleBuild wrapper</description>
@@ -315,5 +315,8 @@
315315
source="scaffold\appveyor.yml"
316316
destination="appveyor.yml"
317317
condition="$PLASTER_PARAM_CICD -eq &quot;appveyor&quot;" />
318+
<file
319+
source="scaffold\Requirements.psd1"
320+
destination="Requirements.psd1" />
318321
</content>
319322
</plasterManifest>

release/0.2.4/plaster/ModuleBuild/scaffold/Build.template

Lines changed: 20 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#Requires -Version 5
2+
#Requires -RunAsAdministrator
23
[CmdletBinding(DefaultParameterSetName = 'Build')]
34
param (
45
[parameter(Position = 0, ParameterSetName = 'Build')]
@@ -18,14 +19,20 @@ param (
1819
function PrerequisitesLoaded {
1920
# Install required modules if missing
2021
try {
21-
if ((get-module InvokeBuild -ListAvailable) -eq $null) {
22-
Write-Output "Attempting to install the InvokeBuild module..."
23-
$null = Install-Module InvokeBuild -Scope:CurrentUser
22+
if ((get-module PSDepend -ListAvailable) -eq $null) {
23+
Write-Host "Attempting to install the PSDepend module..."
24+
$null = Install-Module PSDepend -Scope:CurrentUser
2425
}
25-
if (get-module InvokeBuild -ListAvailable) {
26-
Write-Output -NoNewLine "Importing InvokeBuild module"
27-
Import-Module InvokeBuild -Force
28-
Write-Output '...Loaded!'
26+
if (get-module PSDepend -ListAvailable) {
27+
Write-Host -NoNewLine "Importing PSDepend module"
28+
Import-Module PSDepend -Force
29+
Write-Host '...Loaded!'
30+
31+
Write-Host -NoNewLine 'Installing dependencies...'
32+
Invoke-PSDepend -Path $(Join-Path $(Get-Location) 'Requirements.psd1') -Test
33+
Invoke-PSDepend -Path $(Join-Path $(Get-Location) 'Requirements.psd1') -Force
34+
Invoke-PSDepend -Path $(Join-Path $(Get-Location) 'Requirements.psd1') -Import -Force
35+
Write-Host 'Installed!'
2936
return $true
3037
}
3138
else {
@@ -39,8 +46,8 @@ function PrerequisitesLoaded {
3946

4047
function CleanUp {
4148
try {
42-
Write-Output ''
43-
Write-Output 'Attempting to clean up the session (loaded modules and such)...'
49+
Write-Host ''
50+
Write-Host 'Attempting to clean up the session (loaded modules and such)...'
4451
Invoke-Build -Task BuildSessionCleanup
4552
Remove-Module InvokeBuild
4653
}
@@ -77,8 +84,8 @@ switch ($psCmdlet.ParameterSetName) {
7784
Invoke-Build
7885
}
7986
catch {
80-
Write-Output 'Build Failed with the following error:'
81-
Write-Output $_
87+
Write-Host 'Build Failed with the following error:'
88+
Write-Host $_
8289
}
8390
}
8491

@@ -88,8 +95,8 @@ switch ($psCmdlet.ParameterSetName) {
8895
Invoke-Build -Task InstallAndTestModule
8996
}
9097
catch {
91-
Write-Output 'Install and test of module failed:'
92-
Write-Output $_
98+
Write-Host 'Install and test of module failed:'
99+
Write-Host $_
93100
}
94101
}
95102

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@{
2+
InvokeBuild = @{
3+
version = 'latest'
4+
source = 'PSGalleryModule'
5+
}
6+
}

release/0.2.4/plaster/PlasterContent.ps1

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,5 +236,10 @@ $Content = @(
236236
Source = 'scaffold\appveyor.yml'
237237
Destination = 'appveyor.yml'
238238
Condition = '$PLASTER_PARAM_CICD -eq "appveyor"'
239+
},
240+
@{
241+
ContentType = 'file'
242+
Source = 'scaffold\Requirements.psd1'
243+
Destination = 'Requirements.psd1'
239244
}
240245
)

0 commit comments

Comments
 (0)