Path B modernization: trim to 4 modules, bump to 2.0.0, modernize CI#116
Merged
Conversation
Removed per PROJECT_OVERVIEW.md Path B: - Modules: AzureManagement, IntelliTect.PSDbxCli, IntelliTect.PSDropbin, IntelliTect.PSRestore, IntelliTect.ResharperNugetSearch, IntelliTect.MicrosoftWord, IntelliTect.Google, IntelliTect.ChatGpt, DotNetCore (and their tests) - Functions/, Functions.Tests/ (dot-sourced legacy scripts) - Main.ps1, Main.Tests.ps1 (legacy entry point) - Archived Modules/ - submodules/, .gitmodules (unused RamblingCookieMonster submodule) - Lib/, Content/ (unused binaries and test fixture) - Setup.ps1 (ISE bootstrapper; ISE deprecated) Legacy state preserved at tag v1.0-legacy and branch legacy/v1. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* IntelliTect.Common 2.0.0
- Remove obsolete helpers superseded by PowerShell 7 built-ins:
Get-IsWindowsPlatform, Set-IsWindowsVariable, Initialize-Array, ConvertTo-Lines.
- Rewrite Highlight to emit ANSI escape sequences via Write-Output;
works cross-platform on PS7 hosts that support VT.
- Bump PowerShellVersion to 7.2; add CompatiblePSEditions, Tags,
LicenseUri, ProjectUri, ReleaseNotes.
* IntelliTect.File 2.0.0
- Rewrite Get-FileEncoding using raw FileStream so it works on PS7+
(PS7 removed Get-Content -Encoding byte).
- Remove n-ary Join-Path wrapper; PS7's built-in Join-Path accepts
multiple child paths natively.
- Add PSEdition/Version metadata and release notes.
* IntelliTect.Git 2.0.0
- Fix Push-GitBranch: detect upstream via native git invocation,
throw on non-zero git push exit codes, drop Write-Host noise.
- Switch New-GitIgnore source from defunct gitignore.io to
toptal.com/developers/gitignore; drop hard-coded fallback list;
gracefully omit ProjectType dynamic param if list cannot be fetched.
- Add PSEdition/Version metadata and release notes.
* IntelliTect.PSToolbox 2.0.0 (umbrella)
- Shrink RequiredModules to maintained set: Common, File, Git,
CredentialManager. Update description, release notes, metadata.
* CI
- PullRequest.yml: actions/checkout@v4, Pester 5 via PesterConfiguration,
cross-platform matrix (windows-latest + ubuntu-latest), upload test
results, add PSScriptAnalyzer job.
- Deploy.yml: actions/checkout@v4, use PSResourceGet's Publish-PSResource
instead of Publish-Module, cleaner module-discovery logic.
- PSScriptAnalyzerSettings.psd1: enable default rules at Error+Warning,
excluding only the genuinely-needed exceptions.
* Publish.ps1: switch to Publish-PSResource, drop submodule check.
* README.md: rewrite to reflect the trimmed module set, document the
retired modules and their modern replacements, link to v1.0-legacy.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Executes Path B from
PROJECT_OVERVIEW.md§7 — slim and modernize.The legacy 1.x state is preserved before this lands:
v1.0-legacylegacy/v1Commits in this PR
7a45bd6)50c032c)Modules removed
AzureManagementAzIntelliTect.PSDbxClidbxclidirectlyIntelliTect.PSDropbinDropbox.ApiSDKIntelliTect.PSRestoreRecyclemoduleIntelliTect.ResharperNugetSearchFind-PackageIntelliTect.MicrosoftWordIntelliTect.GoogleIntelliTect.ChatGptPowerShellAIDotNetCoredotnetCLIFunctions/,Functions.Tests/Main.ps1,Setup.ps1,Archived Modules/,submodules/,Lib/,Content/Modules kept and modernized (all bumped to 2.0.0)
IntelliTect.Common— removedGet-IsWindowsPlatform,Set-IsWindowsVariable,Initialize-Array,ConvertTo-Lines(use built-in$IsWindows,@(...),-split). RewroteHighlightto emit ANSI escapes viaWrite-Outputfor cross-platform terminals.IntelliTect.File— rewroteGet-FileEncodingto use rawFileStream(PS 7 removedGet-Content -Encoding byte). Removed n-aryJoin-Pathwrapper now that built-inJoin-Pathis n-ary in PS 7.IntelliTect.Git— fixedPush-GitBranchupstream detection + exit-code handling; switchedNew-GitIgnoretemplate source from defunctgitignore.iototoptal.com/developers/gitignore; removed huge embedded fallback list.IntelliTect.PSToolbox(umbrella) —RequiredModulesshrunk to the maintained 4.All keepers now declare
PowerShellVersion = '7.2',CompatiblePSEditions = @('Core'), plusTags,LicenseUri,ProjectUri, andReleaseNotes.CI
actions/checkout@v4New-PesterConfigurationwindows-latest+ubuntu-latestPSScriptAnalyzerjob at Error+Warning severityPublish-PSResource(PSResourceGet) replacesPublish-ModulePSScriptAnalyzerSettings.psd1enables the default rules with only the necessary exclusionsTest results (local)
Invoke-Pester ./Modules.Testson Windows PowerShell 7.4: 59 passed, 2 failed.Both failures are pre-existing and unrelated to this PR:
Edit-File.Create a new temp file and open it to edit— timing-dependent process count.Get-GitRepo.Returns a bare repo object where IsBare==true— fails because modern git defaultssafe.bareRepository=explicit.Breaking changes
This is a major version (2.0.0) release. Consumers who used the removed modules must switch to the replacements listed above. The full 1.x source remains available at the
v1.0-legacytag andlegacy/v1branch.Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com