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
113 changes: 63 additions & 50 deletions PSModuleDevelopment/PSModuleDevelopment.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
RootModule = 'PSModuleDevelopment.psm1'

# Version number of this module.
ModuleVersion = '2.2.9.107'
ModuleVersion = '2.2.10.120'

# ID used to uniquely identify this module
GUID = '37dd5fce-e7b5-4d57-ac37-832055ce49d6'
Expand All @@ -27,7 +27,7 @@
# Modules that must be imported into the global environment prior to importing
# this module
RequiredModules = @(
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.4.149' }
@{ ModuleName = 'PSFramework'; ModuleVersion = '1.6.198' }
@{ ModuleName = 'string'; ModuleVersion = '0.6.1' }
)

Expand All @@ -50,45 +50,57 @@

# Functions to export from this module
FunctionsToExport = @(
'Convert-PSMDMessage',
'Expand-PSMDTypeName',
'Export-PSMDString',
'Find-PSMDFileContent',
'Find-PSMDType',
'Format-PSMDParameter',
'Get-PSMDArgumentCompleter',
'Get-PSMDAssembly',
'Get-PSMDConstructor',
'Get-PSMDFileCommand',
'Get-PSMDHelp',
'Get-PSMDMember',
'Get-PSMDModuleDebug',
'Get-PSMDTemplate',
'Import-PSMDModuleDebug',
'Invoke-PSMDTemplate',
'Measure-PSMDCommand',
'Measure-PSMDLinesOfCode',
'New-PSMDDotNetProject',
'New-PSMDHeader',
'New-PSMDFormatTableDefinition',
'New-PSMDModuleNugetPackage',
'New-PSMDTemplate',
'New-PssModuleProject',
'Publish-PSMDScriptFile',
'Publish-PSMDStagedModule',
'Read-PSMDScript',
'Remove-PSMDModuleDebug',
'Remove-PSMDTemplate',
'Rename-PSMDParameter',
'Restart-PSMDShell',
'Search-PSMDPropertyValue',
'Set-PSMDEncoding',
'Set-PSMDModuleDebug',
'Set-PSMDCmdletBinding',
'Set-PSMDModulePath',
'Set-PSMDParameterHelp',
'Set-PSMDStagingRepository',
'Show-PSMDSyntax',
'Convert-PSMDMessage'
'Expand-PSMDTypeName'
'Export-PSMDString'
'Find-PSMDFileContent'
'Find-PSMDType'
'Format-PSMDParameter'
'Get-PSMDArgumentCompleter'
'Get-PSMDAssembly'
'Get-PSMDBuildAction'
'Get-PSMDBuildArtifact'
'Get-PSMDBuildProject'
'Get-PSMDBuildStep'
'Get-PSMDConstructor'
'Get-PSMDFileCommand'
'Get-PSMDHelp'
'Get-PSMDMember'
'Get-PSMDModuleDebug'
'Get-PSMDTemplate'
'Import-PSMDModuleDebug'
'Invoke-PSMDBuildProject'
'Invoke-PSMDTemplate'
'Measure-PSMDCommand'
'Measure-PSMDLinesOfCode'
'New-PSMDBuildProject'
'New-PSMDDotNetProject'
'New-PSMDFormatTableDefinition'
'New-PSMDHeader'
'New-PSMDModuleNugetPackage'
'New-PSMDTemplate'
'New-PssModuleProject'
'Publish-PSMDBuildArtifact'
'Publish-PSMDScriptFile'
'Publish-PSMDStagedModule'
'Read-PSMDScript'
'Register-PSMDBuildAction'
'Remove-PSMDBuildArtifact'
'Remove-PSMDModuleDebug'
'Remove-PSMDTemplate'
'Rename-PSMDParameter'
'Resolve-PSMDBuildStepParameter'
'Restart-PSMDShell'
'Search-PSMDPropertyValue'
'Select-PSMDBuildProject'
'Set-PSMDBuildStep'
'Set-PSMDCmdletBinding'
'Set-PSMDEncoding'
'Set-PSMDModuleDebug'
'Set-PSMDModulePath'
'Set-PSMDParameterHelp'
'Set-PSMDStagingRepository'
'Show-PSMDSyntax'
'Split-PSMDScriptFile'
)

Expand All @@ -99,15 +111,16 @@
# VariablesToExport = ''

# Aliases to export from this module
AliasesToExport = @(
'dotnetnew',
'find',
'hex',
'imt',
'ipmod',
'parse',
'Restart-Shell',
'rss',
AliasesToExport = @(
'build'
'dotnetnew'
'find'
'hex'
'imt'
'ipmod'
'parse'
'Restart-Shell'
'rss'
'smd'
)

Expand Down
Binary file modified PSModuleDevelopment/bin/PSModuleDevelopment.dll
Binary file not shown.
Binary file modified PSModuleDevelopment/bin/PSModuleDevelopment.pdb
Binary file not shown.
150 changes: 150 additions & 0 deletions PSModuleDevelopment/bin/PSModuleDevelopment.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 17 additions & 1 deletion PSModuleDevelopment/changelog.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,27 @@
# Changelog

## 2.2.10.120 (2021-07-20)

- New: Build Component - define build workflows based on pre-defined & extensible action code
- Upd: Template AzureFunction - new layout with better build automation
- Upd: Template AzureFunctionRest - new layout to integrate into new AzureFunction template
- Upd: Template PSFProject - added Github Actions integration
- Upd: Aliases - removed "AllScope" option
- Fix: Template PSFTest - fixed PSScriptAnalyzer test path detection
- Fix: Template PSFTest - fixed string LegalSurplus exception being ignored
- Fix: Template PSFModule - fixed PSScriptAnalyzer test path detection
- Fix: Template PSFModule - fixed string LegalSurplus exception being ignored
- Fix: Template PSFProject - fixed PSScriptAnalyzer test path detection
- Fix: Template PSFProject - fixed string LegalSurplus exception being ignored
- Fix: TemplateStore - default path iss invalid on MAC (#136)
- Fix: Invoke-PSMDTemplate - unreliable string replacement through -replace operator (#113)
- Fix: Publish-PSMDScriptFile - insufficient exclude paths (#138; @Callidus2000)

## 2.2.9.106 (September 10th, 2020)

- New: Convert-PSMDMessage - Converts a file's use of PSFramework messages to strings.
- Upd: Export-PSMDString - Adding support for Test-PSFShouldProcess.
- Fix: Export-PSMDString - Failed with splatting detection
- Fix: Publish-PSMDScriptFile - insufficient exclude paths (#138; @Callidus2000)

## 2.2.8.104 (July 26th, 2020)

Expand Down
5 changes: 5 additions & 0 deletions PSModuleDevelopment/en-us/strings.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@

'Get-PSMDFileCommand.SyntaxError' = 'Syntax error in file: {0}' # $pathItem

'Invoke-PSMDBuildProject.Step.Executing' = '[{0}] Executing step {1} ({2})' # $count, $step.Name, $step.Action

'Invoke-PSMDTemplate.Template.NotFound' = 'Unable to find template data for "{0}"' # $TemplateName
'Invoke-PSMDTemplate.Invoking' = 'Creating file/project from template {0}' # $item

'MeasurePSMDLinesOfCode.Processing' = 'Processing Path: {0}' # $fileItem

'Publish-PSMDScriptFile.Module.Saving' = 'Saving module {0} from repository {1}' # $moduleName, (Get-PSFConfigValue -FullName 'PSModuleDevelopment.Script.StagingRepository')
Expand Down
29 changes: 29 additions & 0 deletions PSModuleDevelopment/functions/build/Get-PSMDBuildAction.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
function Get-PSMDBuildAction {
<#
.SYNOPSIS
Get a list of registered build actions.

.DESCRIPTION
Get a list of registered build actions.
Actions are the scriptblocks that are used to execute the build logic when running Invoke-PSMDBuildProject.

.PARAMETER Name
The name by which to filter the actions returned.
Defaults to '*'

.EXAMPLE
PS C:\> Get-PSMDBuildAction

Get a list of all registered build actions.
#>
[CmdletBinding()]
param (
[PsfArgumentCompleter('PSModuleDevelopment.Build.Action')]
[string]
$Name = '*'
)

process {
$script:buildActions.Values | Where-Object Name -Like $Name
}
}
Loading