Skip to content

Commit 886deb2

Browse files
committed
Update build configuration
1 parent f459e9b commit 886deb2

11 files changed

+57
-698
lines changed

.build.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
# Import build tasks
3+
. InvokeBuildHelperTasks
4+
5+
# Build configuration
6+
$IBHConfig.RepositoryTask.Token = Use-VaultSecureString -TargetName 'GitHub Token (claudiospizzi)'
7+
$IBHConfig.GalleryTask.Token = Use-VaultSecureString -TargetName 'PowerShell Gallery Key (claudiospizzi)'

.debug.ps1

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
2+
Get-ChildItem -Path $PSScriptRoot -Directory |
3+
ForEach-Object { '{0}\{1}.psd1'-f $_.FullName, $_.Name } |
4+
Where-Object { Test-Path -Path $_ } |
5+
Import-Module -Verbose -Force
6+
7+
<# ------------------ PLACE DEBUG COMMANDS AFTER THIS LINE ------------------ #>

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
# Ignore project files
2-
/bin/
3-
/tst/
1+
/out/

.vscode/launch.json

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,18 @@
22
"version": "0.2.0",
33
"configurations": [
44
{
5+
"name": "PowerShell Interactive",
56
"type": "PowerShell",
67
"request": "launch",
7-
"name": "PowerShell Launch Debug File",
8-
"script": "${workspaceRoot}\\build.debug.ps1",
9-
"args": [],
10-
"cwd": "${workspaceRoot}",
8+
"cwd": "${workspaceFolder}",
9+
"createTemporaryIntegratedConsole": true
10+
},
11+
{
12+
"name": "PowerShell Debug Script",
13+
"type": "PowerShell",
14+
"request": "launch",
15+
"script": "${workspaceFolder}\\.debug.ps1",
16+
"cwd": "${workspaceFolder}",
1117
"createTemporaryIntegratedConsole": true
1218
}
1319
]

.vscode/settings.json

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,31 @@
11
{
2-
// Trim trailing whitespaces, but not for markdown
32
"files.trimTrailingWhitespace": true,
43
"[markdown]": {
54
"files.trimTrailingWhitespace": false
65
},
76

8-
// Exclude files form the explorer tree
97
"files.exclude": {
10-
"bin/**": true,
11-
"tst/**": true,
12-
"Sources/*/.vs/**": true,
13-
"Sources/*/packages/**": true,
14-
"Sources/*/TestResults/**": true
8+
"**/.git": true,
9+
"out": true
1510
},
11+
1612
"search.exclude": {
17-
"bin": true,
18-
"tst": true
13+
"out": true
1914
},
2015

21-
// PowerShell console behaviour
2216
"powershell.debugging.createTemporaryIntegratedConsole": true,
23-
"powershell.integratedConsole.showOnStartup": true,
24-
"powershell.integratedConsole.focusConsoleOnExecute": false,
2517

26-
// PowerShell code formatting
27-
"powershell.codeFormatting.openBraceOnSameLine": false,
28-
"powershell.codeFormatting.newLineAfterOpenBrace": true,
18+
"powershell.codeFormatting.alignPropertyValuePairs": true,
19+
"powershell.codeFormatting.ignoreOneLineBlock": true,
2920
"powershell.codeFormatting.newLineAfterCloseBrace": true,
21+
"powershell.codeFormatting.newLineAfterOpenBrace": true,
22+
"powershell.codeFormatting.openBraceOnSameLine": false,
23+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
24+
"powershell.codeFormatting.useCorrectCasing": true,
25+
"powershell.codeFormatting.whitespaceAfterSeparator": true,
26+
"powershell.codeFormatting.whitespaceAroundOperator": true,
27+
"powershell.codeFormatting.WhitespaceAroundPipe": true,
3028
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
3129
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
32-
"powershell.codeFormatting.whitespaceAroundOperator": true,
33-
"powershell.codeFormatting.whitespaceAfterSeparator": true,
34-
"powershell.codeFormatting.ignoreOneLineBlock": true,
35-
"powershell.codeFormatting.alignPropertyValuePairs": true
36-
}
30+
"powershell.codeFormatting.WhitespaceInsideBrace": true
31+
}

.vscode/tasks.json

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
11
{
22
"version": "2.0.0",
33

4-
"windows": {
5-
"type": "shell",
6-
"options": {
7-
"shell": {
8-
"executable": "C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe",
9-
"args": [ "-NoProfile", "-Command" ]
10-
}
11-
},
4+
"command": "\"& { Invoke-Build -Task $args }\"",
125

13-
"command": "\"& { Invoke-psake build.psake.ps1 -taskList $args -notr }\"",
14-
15-
"presentation": {
16-
"echo": false,
17-
"reveal": "always",
18-
"focus": false,
19-
"panel": "new"
6+
"type": "shell",
7+
"options": {
8+
"shell": {
9+
"executable": "powershell.exe",
10+
"args": [ "-NoProfile", "-Command" ]
2011
}
2112
},
13+
"presentation": {
14+
"echo": false,
15+
"reveal": "always",
16+
"focus": false,
17+
"panel": "new"
18+
},
2219

2320
"tasks": [
2421
{
@@ -36,4 +33,4 @@
3633
}
3734
}
3835
]
39-
}
36+
}

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[![PowerShell Gallery - ScriptLogger](https://img.shields.io/badge/PowerShell_Gallery-ScriptLogger-0072C6.svg)](https://www.powershellgallery.com/packages/ScriptLogger)
22
[![GitHub - Release](https://img.shields.io/github/release/claudiospizzi/ScriptLogger.svg)](https://github.com/claudiospizzi/ScriptLogger/releases)
33
[![AppVeyor - master](https://img.shields.io/appveyor/ci/claudiospizzi/ScriptLogger/master.svg)](https://ci.appveyor.com/project/claudiospizzi/ScriptLogger/branch/master)
4-
[![AppVeyor - dev](https://img.shields.io/appveyor/ci/claudiospizzi/ScriptLogger/dev.svg)](https://ci.appveyor.com/project/claudiospizzi/ScriptLogger/branch/dev)
54

65
# ScriptLogger PowerShell Module
76

appveyor.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ install:
77
- ps: Install-PackageProvider NuGet -Force | Out-Null
88
- ps: Install-Module posh-git -Force
99
- ps: Install-Module SecurityFever -Force
10-
- ps: Install-Module psake -Force
10+
- ps: Install-Module InvokeBuild -Force
11+
- ps: Install-Module InvokeBuildHelper -Force
1112
- ps: Install-Module Pester -Force
1213
- ps: Install-Module PSScriptAnalyzer -Force
1314

@@ -21,9 +22,9 @@ platform: Any CPU
2122
# Execute psake build task
2223
build_script:
2324
- ps: >-
24-
Invoke-psake build.psake.ps1 -taskList Build -notr
25+
Inboke-Build -Task 'Build'
2526
2627
# Execute psake test and analyze task
2728
test_script:
2829
- ps: >-
29-
Invoke-psake build.psake.ps1 -taskList Pester, ScriptAnalyzer -notr
30+
Inboke-Build -Task 'Test'

build.debug.ps1

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)