Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ Output/
scratch/

testResults.xml

node_modules/
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,5 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
comment exists in your code.

[#3]: https://github.com/HeyItsGilbert/GoodEnoughRules/pull/3

<!-- spell-checker:ignore DPAPI -->
31 changes: 15 additions & 16 deletions build.ps1
Original file line number Diff line number Diff line change
@@ -1,25 +1,24 @@
[cmdletbinding(DefaultParameterSetName = 'Task')]
[CmdletBinding(DefaultParameterSetName = 'Task')]
param(
# Build task(s) to execute
[parameter(ParameterSetName = 'task', position = 0)]
[ArgumentCompleter( {
param($Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParams)
$psakeFile = './psakeFile.ps1'
switch ($Parameter) {
'Task' {
if ([string]::IsNullOrEmpty($WordToComplete)) {
Get-PSakeScriptTasks -buildFile $psakeFile | Select-Object -ExpandProperty Name
param($Command, $Parameter, $WordToComplete, $CommandAst, $FakeBoundParams)
$psakeFile = './psakeFile.ps1'
switch ($Parameter) {
'Task' {
if ([string]::IsNullOrEmpty($WordToComplete)) {
Get-PSakeScriptTasks -buildFile $psakeFile | Select-Object -ExpandProperty Name
} else {
Get-PSakeScriptTasks -buildFile $psakeFile |
Where-Object { $_.Name -match $WordToComplete } |
Select-Object -ExpandProperty Name
}
}
else {
Get-PSakeScriptTasks -buildFile $psakeFile |
Where-Object { $_.Name -match $WordToComplete } |
Select-Object -ExpandProperty Name
Default {
}
}
Default {
}
}
})]
})]
[string[]]$Task = 'default',

# Bootstrap dependencies
Expand Down Expand Up @@ -60,6 +59,6 @@ if ($PSCmdlet.ParameterSetName -eq 'Help') {
Format-Table -Property Name, Description, Alias, DependsOn
} else {
Set-BuildEnvironment -Force
Invoke-psake -buildFile $psakeFile -taskList $Task -nologo -properties $Properties -parameters $Parameters
Invoke-psake -buildFile $psakeFile -taskList $Task -NoLogo -properties $Properties -parameters $Parameters
exit ([int](-not $psake.build_success))
}
29 changes: 29 additions & 0 deletions cspell.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
// cSpell Settings
{
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json",
// Version of the setting file. Always 0.2
"version": "0.2",
// language - current active spelling language
"language": "en",
"dictionaries": ["powershell"],
// words - list of words to be always considered correct
"words": [
"BHPS",
"maml",
"psake",
"visualstudio"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": [
"hte"
],
"ignorePaths": [
"cspell.json",
"docs/requirements.txt",
"docs/en-US/**",
"Output/**",
"tests/out/**"
]
}
Loading
Loading