vx-pm-yarn
Yarn package manager support for the vx universal tool manager.
Status
🚧 Under Development - This crate is currently under development and not yet implemented.
Overview
vx-pm-yarn will provide Yarn package manager support for vx, enabling fast and reliable package management for JavaScript/Node.js projects through the vx interface.
Planned Features
- Yarn Package Manager: Full Yarn package management capabilities
- Workspace Support: Yarn workspaces and monorepo support
- PnP (Plug'n'Play): Zero-installs and Plug'n'Play support
- Berry Support: Yarn 2+ (Berry) modern features
- Script Execution: Run package.json scripts through vx
- Cache Management: Efficient package caching and management
- Lock File: yarn.lock file management and integrity
Planned Commands
Package Management
# Install packages (planned)
# Update packages (planned)
Project Management
# Initialize projects (planned)
# Run scripts (planned)
# Information (planned)
Workspace Management
# Workspace commands (planned)
Current Status
This crate is currently in the planning phase. JavaScript/Node.js package management is currently provided through the vx-pm-npm crate.
For immediate JavaScript development needs, please use:
vx-pm-npm- NPM package manager (available now)vx-tool-node- Node.js runtime with npm
Development Roadmap
- Phase 1: Basic Yarn Classic (v1) support
- Phase 2: Yarn Berry (v2+) support
- Phase 3: Workspace and monorepo features
- Phase 4: Advanced features (PnP, Zero-installs)
Yarn vs NPM
Yarn Advantages (Planned)
- Faster: Parallel package installation
- Deterministic: Lockfile ensures consistent installs
- Workspaces: Built-in monorepo support
- Offline: Offline package installation
- Security: Enhanced security features
Feature Comparison
| Feature | NPM (Available) | Yarn (Planned) |
|---|---|---|
| Package Installation | ✅ | 🚧 |
| Script Running | ✅ | 🚧 |
| Workspaces | ✅ | 🚧 |
| Lock Files | ✅ | 🚧 |
| Offline Mode | ❌ | 🚧 |
| PnP Support | ❌ | 🚧 |
Contributing
This crate is not yet implemented. If you're interested in contributing to Yarn support in vx, please:
- Check the main project issues
- Join the discussion about Yarn package manager support
- See the contributing guidelines
Alternative Solutions
While this crate is under development, consider these alternatives:
NPM (Available Now)
# Use NPM for JavaScript package management
System Yarn
# Use system Yarn with vx
Configuration (Planned)
Project Configuration (.vx.toml)
# Planned configuration
[]
= "latest"
[]
= "berry" # or "classic"
= true
= true
Yarn Configuration (.yarnrc.yml)
# Planned Yarn configuration integration
nodeLinker: pnp
enableGlobalCache: true
compressionLevel: mixed
License
This project is licensed under the MIT License - see the LICENSE file for details.
Related Crates
vx-core- Core functionalityvx-cli- Command-line interfacevx-pm-npm- NPM package manager (available now)vx-pm-pnpm- PNPM package manager (planned)vx-tool-node- Node.js tool