Releases: gaelcolas/Sampler
Releases · gaelcolas/Sampler
v0.116.6-preview0001
[v0.116.6-preview0001]
Fixed
- Fix unit tests that was wrongly written and failed on Pester 5.5.
v0.116.5
v0.116.5-preview0001
[v0.116.5-preview0001]
- Fix Azure Pipeline bug to resolve errors and delays during the build process. Shallow fetch has been disabled to ensure complete repository cloning. Fixes #424
v0.116.4
v0.116.4-preview0001
[v0.116.4-preview0001]
Fixed
- Fix a bug that prevented downloading of dependent modules that has a
dependency on the module PowerShell-Yaml. Fixes #421.
v0.116.3
[v0.116.3]
Changed
- Template
SimpleModule
- The template has been changed to create a module with the minimum scaffolding
when using default values for the template questions. The minimum scaffolding
enable the building and testing of the module, but default there is no pipeline
so it possible to use any platform to run the pipeline. - Additional template parameters have been added which will add additional
functionality to the module.UseGit
- This parameter enables project files that helps with the use
of Git for the project. The template will ask if Git should be used, default
is No.UseGitVersion
- This parameter adds project files that helps with
the use of GitVersion for the project. GitVersion is dependent on Git
being used for the project. The template will ask if GitVersion should
be used if the use of Git was chosen, default is No.UseCodeCovIo
- This parameter adds project files that helps with
the use of CodeCov.io for the project. CodeCov.io is dependent on Git
being used for the project. The template will ask if CodeCov.io should
be used if the use of Git was chosen, default is No.UseGitHub
- This parameter adds project files that helps with
the use of GitHb.com for the project. GitHub.com is dependent on Git
being used for the project. The template will ask if GitHub.com should
be used if the use of Git was chosen, default is No.UseAzurePipelines
- This parameter adds project files that enables
the project to run the pipeline in Azure Pipelines (in Azure DevOps).
The template will ask if Azure Pipelines should be used, default is No.UseVSCode
- This parameter adds project files that helps when using
Visual Studio Code as the project code editor. The template will ask
if Visual Studio Code should be used, default is No.
- The file
build.yaml
will only contain tasks fromSampler.GitHubTasks
if template parameterUseGitHub
is set to true (the answer to the
template question is Yes). - The file
RequiredModules.psd1
will only contain the moduleSampler.GitHubTasks
if template parameterUseGitHub
is set to true (the answer to the
template question is Yes). - If Git is not used (
UseGit
is false) the QA test that uses Git is
removed for the generated filemodule.tests.ps1
.
- The template has been changed to create a module with the minimum scaffolding
- Removed module Plaster from the template file
RequiredModules.psd1.template
since it is not direct requirement for any project. It will still be saved
tooutput/RequiredModules
for a project as it is defined as a required
module in Sampler's module manifest, and Sampler is still a required modul. - Pipeline script for resolving dependencies improved.
- Evaluating PowerShellGet version now supports parameter
AllowOldPowerShellGetModule
(still not recommended to use this parameter). - Now defaults to save the modules PowerShellGet and PackageManagement
to the folderoutput/RequiredModules
(same logic as for module PSDepend)
to not make permanent changes to the contributors machine. If parameter
PSDependTarget
is either set toCurrentUser
orAllUsers
the modules
are installed.
- Evaluating PowerShellGet version now supports parameter
Fixed
- Removed duplicate header in template file
README.md.template
. - Fix typo in the file
about_ModuleName.help.template
and inmodule.template
. - Integration tests clean up the test drive after each test.
- Update generated module manifest to have recommended values for properties.
Fixes #326. - Now correctly uses the key
CodeCoverage
in the filebuild.yaml.template
.
Fixes #359. - Pipeline script for resolving dependencies improved.
Get-PackageProvider
no longer throws an exception when NuGet provider
is missing (in Windows PowerShell in a clean Windows install).Install-PackageProvider
now defaults to installing in the current
user scope to avoid requiring an elevated prompt. This is the only
change that is permanent on the contributors machine. It is not possible
to avoid this as long at the module PowerShellGet requires the NuGet
package provider.- Remove duplicate code that set
AllowPrerelease
when installing package
provider. - Fixed wrong splatting variable that prevented
Install-PackageProvider
to run. - Removing all existing PowerShellGet and PackageManagement module that
is loaded into the session to load the newly saved or installed. - Handle parameter
AllowOldPowerShellGetModule
when loading PowerShellGet
module version. - Fix message on
Write-Progress
statement. - Small style cleanups.
- Fixed aliases in
prefix.ps1
to support ModuleBuild v3.0.0. The fix
makes ModuleBuilder not seeing the aliases (using AST) so that the module
manifest is not changed during build, instead they are exported during
module import. In the future we could add a separate public file that
defines the aliases to export so the module manifest is updated during
build.
v0.116.3-preview0002
[v0.116.3-preview0002]
Changed
- Template
SimpleModule
- The template has been changed to create a module with the minimum scaffolding
when using default values for the template questions. The minimum scaffolding
enable the building and testing of the module, but default there is no pipeline
so it possible to use any platform to run the pipeline. - Additional template parameters have been added which will add additional
functionality to the module.UseGit
- This parameter enables project files that helps with the use
of Git for the project. The template will ask if Git should be used, default
is No.UseGitVersion
- This parameter adds project files that helps with
the use of GitVersion for the project. GitVersion is dependent on Git
being used for the project. The template will ask if GitVersion should
be used if the use of Git was chosen, default is No.UseCodeCovIo
- This parameter adds project files that helps with
the use of CodeCov.io for the project. CodeCov.io is dependent on Git
being used for the project. The template will ask if CodeCov.io should
be used if the use of Git was chosen, default is No.UseGitHub
- This parameter adds project files that helps with
the use of GitHb.com for the project. GitHub.com is dependent on Git
being used for the project. The template will ask if GitHub.com should
be used if the use of Git was chosen, default is No.UseAzurePipelines
- This parameter adds project files that enables
the project to run the pipeline in Azure Pipelines (in Azure DevOps).
The template will ask if Azure Pipelines should be used, default is No.UseVSCode
- This parameter adds project files that helps when using
Visual Studio Code as the project code editor. The template will ask
if Visual Studio Code should be used, default is No.
- The file
build.yaml
will only contain tasks fromSampler.GitHubTasks
if template parameterUseGitHub
is set to true (the answer to the
template question is Yes). - The file
RequiredModules.psd1
will only contain the moduleSampler.GitHubTasks
if template parameterUseGitHub
is set to true (the answer to the
template question is Yes). - If Git is not used (
UseGit
is false) the QA test that uses Git is
removed for the generated filemodule.tests.ps1
.
- The template has been changed to create a module with the minimum scaffolding
- Removed module Plaster from the template file
RequiredModules.psd1.template
since it is not direct requirement for any project. It will still be saved
tooutput/RequiredModules
for a project as it is defined as a required
module in Sampler's module manifest, and Sampler is still a required modul. - Pipeline script for resolving dependencies improved.
- Evaluating PowerShellGet version now supports parameter
AllowOldPowerShellGetModule
(still not recommended to use this parameter). - Now defaults to save the modules PowerShellGet and PackageManagement
to the folderoutput/RequiredModules
(same logic as for module PSDepend)
to not make permanent changes to the contributors machine. If parameter
PSDependTarget
is either set toCurrentUser
orAllUsers
the modules
are installed.
- Evaluating PowerShellGet version now supports parameter
Fixed
- Removed duplicate header in template file
README.md.template
. - Fix typo in the file
about_ModuleName.help.template
and inmodule.template
. - Integration tests clean up the test drive after each test.
- Update generated module manifest to have recommended values for properties.
Fixes #326. - Now correctly uses the key
CodeCoverage
in the filebuild.yaml.template
.
Fixes #359. - Pipeline script for resolving dependencies improved.
Get-PackageProvider
no longer throws an exception when NuGet provider
is missing (in Windows PowerShell in a clean Windows install).Install-PackageProvider
now defaults to installing in the current
user scope to avoid requiring an elevated prompt. This is the only
change that is permanent on the contributors machine. It is not possible
to avoid this as long at the module PowerShellGet requires the NuGet
package provider.- Remove duplicate code that set
AllowPrerelease
when installing package
provider. - Fixed wrong splatting variable that prevented
Install-PackageProvider
to run. - Removing all existing PowerShellGet and PackageManagement module that
is loaded into the session to load the newly saved or installed. - Handle parameter
AllowOldPowerShellGetModule
when loading PowerShellGet
module version. - Fix message on
Write-Progress
statement. - Small style cleanups.
- Fixed aliases in
prefix.ps1
to support ModuleBuild v3.0.0. The fix
makes ModuleBuilder not seeing the aliases (using AST) so that the module
manifest is not changed during build, instead they are exported during
module import. In the future we could add a separate public file that
defines the aliases to export so the module manifest is updated during
build.
v0.116.3-preview0001
[v0.116.3-preview0001]
Changed
- Template
SimpleModule
- The template has been changed to create a module with the minimum scaffolding
when using default values for the template questions. The minimum scaffolding
enable the building and testing of the module, but default there is no pipeline
so it possible to use any platform to run the pipeline. - Additional template parameters have been added which will add additional
functionality to the module.UseGit
- This parameter enables project files that helps with the use
of Git for the project. The template will ask if Git should be used, default
is No.UseGitVersion
- This parameter adds project files that helps with
the use of GitVersion for the project. GitVersion is dependent on Git
being used for the project. The template will ask if GitVersion should
be used if the use of Git was chosen, default is No.UseCodeCovIo
- This parameter adds project files that helps with
the use of CodeCov.io for the project. CodeCov.io is dependent on Git
being used for the project. The template will ask if CodeCov.io should
be used if the use of Git was chosen, default is No.UseGitHub
- This parameter adds project files that helps with
the use of GitHb.com for the project. GitHub.com is dependent on Git
being used for the project. The template will ask if GitHub.com should
be used if the use of Git was chosen, default is No.UseAzurePipelines
- This parameter adds project files that enables
the project to run the pipeline in Azure Pipelines (in Azure DevOps).
The template will ask if Azure Pipelines should be used, default is No.UseVSCode
- This parameter adds project files that helps when using
Visual Studio Code as the project code editor. The template will ask
if Visual Studio Code should be used, default is No.
- The file
build.yaml
will only contain tasks fromSampler.GitHubTasks
if template parameterUseGitHub
is set to true (the answer to the
template question is Yes). - The file
RequiredModules.psd1
will only contain the moduleSampler.GitHubTasks
if template parameterUseGitHub
is set to true (the answer to the
template question is Yes). - If Git is not used (
UseGit
is false) the QA test that uses Git is
removed for the generated filemodule.tests.ps1
.
- The template has been changed to create a module with the minimum scaffolding
- Removed module Plaster from the template file
RequiredModules.psd1.template
since it is not direct requirement for any project. It will still be saved
tooutput/RequiredModules
for a project as it is defined as a required
module in Sampler's module manifest, and Sampler is still a required modul.
Fixed
- Removed duplicate header in template file
README.md.template
. - Fix typo in the file
about_ModuleName.help.template
and inmodule.template
. - Integration tests clean up the test drive after each test.
- Update generated module manifest to have recommended values for properties.
Fixes #326. - Now correctly uses the key
CodeCoverage
in the filebuild.yaml.template
.
Fixes #359.
v0.116.2
v0.116.2-preview0002
[v0.116.2-preview0002]
Added
- Script
Set-SamplerTaskVariable.ps1
- Added debug output of PSModulePath