You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Refactored build tasks to use `$PSBPreference.TaskDependencies`.
* Introduced `cspell.json` for spell checking configuration.
* Updated `CHANGELOG.md` to reflect changes in task dependencies.
* Adjusted formatting in several scripts for consistency.
## Related Issue
Resolves#12
## Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
## How Has This Been Tested?
Verified that existing tests continue to pass.
## Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes
that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're
here to help! -->
- [x] My code follows the code style of this project.
- [x] I have updated the documentation accordingly.
- [x] I have added this change to the CHANGELOG.md.
- [x] I have read the **CONTRIBUTING** document.
- [ ] I have added tests to cover my changes.
- [x] All new and existing tests passed.
Assert -conditionToCheck ($PSBPreference.Publish.PSRepositoryApiKey-or$PSBPreference.Publish.PSRepositoryCredential) -failureMessage "API key or credential not defined to authenticate with [$($PSBPreference.Publish.PSRepository)] with."
162
162
163
163
$publishParams=@{
@@ -177,7 +177,7 @@ task Publish -depends Test {
177
177
Publish-PSBuildModule@publishParams
178
178
} -description 'Publish module to the defined PowerShell repository'
| GenerateMarkdown | StageFiles | Build markdown-based help |
76
-
| GenerateMAML | GenerateMarkdown | Build MAML help |
77
-
| GenerateUpdatableHelp | BuildHelp | Build updatable help cab |
75
+
| GenerateMarkdown | StageFiles | Build markdown-based help |
76
+
| GenerateMAML | GenerateMarkdown | Build MAML help |
77
+
| GenerateUpdatableHelp | BuildHelp | Build updatable help cab |
78
78
79
79
## Task customization
80
80
@@ -119,10 +119,21 @@ match your environment.
119
119
| $PSBPreference.Help.DefaultLocale |`(Get-UICulture).Name`| Default locale used for help generation |
120
120
| $PSBPreference.Help.ConvertReadMeToAboutHelp |`$false`| Convert project readme into the module about file |
121
121
| $PSBPreference.Docs.RootDir |`$projectRoot/docs`| Directory PlatyPS markdown documentation will be saved to |
122
-
| $PSBPreference.Docs.Overwrite |`$false`| Overwrite the markdown files in the docs folder using the comment based help as the source of truth. |
122
+
| $PSBPreference.Docs.Overwrite |`$false`| Overwrite the markdown files in the docs folder using the comment based help as the source of truth. |
123
123
| $PSBPreference.Publish.PSRepository |`PSGallery`| PowerShell repository name to publish |
124
124
| $PSBPreference.Publish.PSRepositoryApiKey |`$env:PSGALLERY_API_KEY`| API key to authenticate to PowerShell repository with |
125
125
| $PSBPreference.Publish.PSRepositoryCredential |`$null`| Credential to authenticate to PowerShell repository with. Overrides `$psRepositoryApiKey` if defined |
126
+
| $PSBPreference.TaskDependencies.Clean | 'Init' | Tasks the 'Clean' task depends on. |
127
+
| $PSBPreference.TaskDependencies.StageFiles | 'Clean' | Tasks the 'StageFiles' task depends on. |
128
+
| $PSBPreference.TaskDependencies.Build | 'StageFiles', 'BuildHelp' | Tasks the 'Build' task depends on. |
129
+
| $PSBPreference.TaskDependencies.Analyze | 'Build' | Tasks the 'Analyze' task depends on. |
130
+
| $PSBPreference.TaskDependencies.Pester | 'Build' | Tasks the 'Pester' task depends on. |
131
+
| $PSBPreference.TaskDependencies.Test | 'Pester', 'Analyze' | Tasks the 'Test' task depends on. |
132
+
| $PSBPreference.TaskDependencies.BuildHelp | 'GenerateMarkdown', 'GenerateMAML' | Tasks the 'BuildHelp' task depends on. |
133
+
| $PSBPreference.TaskDependencies.GenerateMarkdown | 'StageFiles' | Tasks the 'GenerateMarkdown' task depends on. |
134
+
| $PSBPreference.TaskDependencies.GenerateMAML | 'GenerateMarkdown' | Tasks the 'GenerateMAML' task depends on. |
135
+
| $PSBPreference.TaskDependencies.GenerateUpdatableHelp | 'BuildHelp' | Tasks the 'GenerateUpdatableHelp' task depends on. |
136
+
| $PSBPreference.TaskDependencies.Publish | 'Test' | Tasks the 'Publish' task depends on. |
0 commit comments