feat: migrate Node.js to new feature folder architecture#56
Merged
Conversation
- Create self-contained features/node/ directory structure - Convert existing node.zsh installation logic to bash - Add comprehensive npm package management in update.bash - Include extensive test suite with bats framework - Provide complete documentation and troubleshooting guide This migration follows the established pattern from features/ssh/, features/git/, and features/homebrew/ with no external dependencies on lib files and full test coverage. The new structure replaces: - bin/install/node.zsh → features/node/install.bash - bin/update/npm.zsh → features/node/update.bash Key improvements: - Self-contained bash implementation - Robust error handling and validation - Comprehensive test coverage (3 test files, 25+ test cases) - Better npm package management with missing/outdated detection - Clear documentation with troubleshooting guide
This was referenced Jul 27, 2025
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.
Summary
Migrates Node.js installation and management to the new feature folder architecture, following the established pattern from
features/ssh/,features/git/, andfeatures/homebrew/.Key Changes
features/node/bin/install/node.zshtofeatures/node/install.bashfeatures/node/update.bashbin/lib/utility filesFiles Added
Migration Path
Replaces:
bin/install/node.zsh→features/node/install.bashbin/update/npm.zsh→features/node/update.bashMaintains compatibility with:
.node-versionfiles)Improvements Over Legacy
Test Plan
Running Tests
Backwards Compatibility
This change maintains full backwards compatibility:
The new feature can be adopted gradually without disrupting existing workflows.