
## Summary Comprehensive repository cleanup focusing on plugin dependency management, documentation improvements, and git tracking optimization. ## Key Changes ### 🔧 Core Infrastructure - Synchronized all nu-* dependencies across plugins for version consistency - Enhanced upstream tracking and automation systems - Removed nushell directory from git tracking for cleaner repository management ### 📚 Documentation - Significantly expanded README.md with comprehensive development guides - Added detailed workflow documentation and command references - Improved plugin collection overview and usage examples ### 🧹 Repository Cleanup - Removed legacy bash scripts (build-all.sh, collect-install.sh, make_plugin.sh) - Streamlined automation through unified justfile and nushell script approach - Updated .gitignore with nushell directory and archive patterns - Removed nushell directory from git tracking to prevent unwanted changes ### 🔌 Plugin Updates - **nu_plugin_image**: Major refactoring with modular architecture improvements - **nu_plugin_hashes**: Enhanced functionality and build system improvements - **nu_plugin_highlight**: Updated for new plugin API compatibility - **nu_plugin_clipboard**: Dependency synchronization - **nu_plugin_desktop_notifications**: Version alignment - **nu_plugin_port_extension & nu_plugin_qr_maker**: Consistency updates - **nu_plugin_kcl & nu_plugin_tera**: Submodule synchronization ### 🏗️ Git Tracking Optimization - Removed nushell directory from version control for cleaner repository management - Added comprehensive .gitignore patterns for build artifacts and archives ## Statistics - 2,082 files changed - 2,373 insertions, 339,936 deletions - Net reduction of 337,563 lines (primarily from removing nushell directory tracking) ## Benefits - Complete version consistency across all plugins - Cleaner repository with optimized git tracking - Improved developer experience with streamlined workflows - Enhanced documentation and automation - Reduced repository size and complexity 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
160 lines
5.2 KiB
Plaintext
160 lines
5.2 KiB
Plaintext
# Build Module - Native and Cross-Platform Building
|
|
# Commands for building plugins natively and for multiple platforms
|
|
|
|
# 🔨 NATIVE BUILD COMMANDS
|
|
|
|
# Build all plugins for current platform
|
|
[no-cd]
|
|
build:
|
|
@echo "🔨 Building all plugins..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_all.nu
|
|
|
|
# Build all plugins with verbose output
|
|
[no-cd]
|
|
build-verbose:
|
|
@echo "🔨 Building all plugins (verbose)..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_all.nu --verbose
|
|
|
|
# Build all plugins in parallel (experimental)
|
|
[no-cd]
|
|
build-parallel:
|
|
@echo "⚡ Building all plugins in parallel..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_all.nu --parallel
|
|
|
|
# Build specific plugin
|
|
[no-cd]
|
|
build-plugin PLUGIN:
|
|
@echo "🔨 Building {{PLUGIN}}..."
|
|
@cd {{PLUGIN}} && cargo build --release
|
|
|
|
# 🎯 CROSS-COMPILATION COMMANDS
|
|
|
|
# List available build targets
|
|
[no-cd]
|
|
build-targets:
|
|
@echo "📋 Available build targets:"
|
|
@{{justfile_directory()}}/scripts/run.sh build_cross.nu --list-targets
|
|
|
|
# Build for specific target
|
|
[no-cd]
|
|
build-cross TARGET:
|
|
@echo "🎯 Cross-compiling for {{TARGET}}..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_cross.nu --targets {{TARGET}}
|
|
|
|
# Build for all supported targets
|
|
[no-cd]
|
|
build-cross-all:
|
|
@echo "🌍 Cross-compiling for all targets..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_cross.nu --all-targets
|
|
|
|
# Build for all targets in parallel
|
|
[no-cd]
|
|
build-cross-parallel:
|
|
@echo "⚡ Cross-compiling for all targets in parallel..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_cross.nu --all-targets --parallel
|
|
|
|
# Build for specific target with Docker
|
|
[no-cd]
|
|
build-docker TARGET:
|
|
@echo "🐳 Building {{TARGET}} with Docker..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_cross.nu --targets {{TARGET}} --docker
|
|
|
|
# Force native compilation for target
|
|
[no-cd]
|
|
build-native TARGET:
|
|
@echo "🏠 Building {{TARGET}} natively..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_cross.nu --targets {{TARGET}} --native
|
|
|
|
# 🐳 DOCKER BUILD COMMANDS
|
|
|
|
# Build Docker cross-compilation image
|
|
[no-cd]
|
|
build-docker-image:
|
|
@echo "🐳 Building Docker cross-compilation image..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_docker_cross.nu --build-image
|
|
|
|
# Force rebuild Docker image from scratch
|
|
[no-cd]
|
|
build-docker-image-fresh:
|
|
@echo "🐳 Rebuilding Docker image from scratch..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_docker_cross.nu --build-image --force-rebuild --no-cache
|
|
|
|
# Show Docker environment info
|
|
[no-cd]
|
|
build-docker-info:
|
|
@echo "🐳 Docker environment information:"
|
|
@{{justfile_directory()}}/scripts/run.sh build_docker_cross.nu --info
|
|
|
|
# Build specific plugin with Docker
|
|
build-docker-plugin PLUGIN TARGET:
|
|
@echo "🐳 Building {{PLUGIN}} for {{TARGET}} with Docker..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_docker_cross.nu --plugin {{PLUGIN}} --target {{TARGET}}
|
|
|
|
# Clean up Docker artifacts
|
|
[no-cd]
|
|
build-docker-cleanup:
|
|
@echo "🧹 Cleaning up Docker artifacts..."
|
|
@{{justfile_directory()}}/scripts/run.sh build_docker_cross.nu --cleanup
|
|
|
|
# 🧹 BUILD MAINTENANCE
|
|
|
|
# Clean all build artifacts
|
|
[no-cd]
|
|
build-clean:
|
|
@echo "🧹 Cleaning build artifacts..."
|
|
@for plugin in nu_plugin_*; do \
|
|
if [ -d "$$plugin" ]; then \
|
|
echo "Cleaning $$plugin..."; \
|
|
cd "$$plugin" && cargo clean && cd ..; \
|
|
fi; \
|
|
done
|
|
|
|
# Update all dependencies (careful!)
|
|
[no-cd]
|
|
build-update-deps:
|
|
@echo "⬆️ Updating dependencies (this may break things)..."
|
|
@for plugin in nu_plugin_*; do \
|
|
if [ -d "$$plugin" ]; then \
|
|
echo "Updating deps in $$plugin..."; \
|
|
cd "$$plugin" && cargo update && cd ..; \
|
|
fi; \
|
|
done
|
|
|
|
# 📊 BUILD INFORMATION
|
|
|
|
# Show build help
|
|
[no-cd]
|
|
build-help:
|
|
@echo "🔨 Build Module Help"
|
|
@echo "==================="
|
|
@echo ""
|
|
@echo "NATIVE BUILDS:"
|
|
@echo " build - Build all plugins for current platform"
|
|
@echo " build-verbose - Build with verbose output"
|
|
@echo " build-parallel - Build in parallel (experimental)"
|
|
@echo " build-plugin PLUGIN - Build specific plugin"
|
|
@echo ""
|
|
@echo "CROSS-COMPILATION:"
|
|
@echo " build-targets - List available targets"
|
|
@echo " build-cross TARGET - Build for specific target"
|
|
@echo " build-cross-all - Build for all targets"
|
|
@echo " build-cross-parallel - Build all targets in parallel"
|
|
@echo " build-docker TARGET - Build with Docker"
|
|
@echo " build-native TARGET - Force native compilation"
|
|
@echo ""
|
|
@echo "DOCKER:"
|
|
@echo " build-docker-image - Build Docker image"
|
|
@echo " build-docker-image-fresh - Rebuild Docker image"
|
|
@echo " build-docker-info - Show Docker info"
|
|
@echo " build-docker-plugin PLUGIN TARGET - Build plugin with Docker"
|
|
@echo " build-docker-cleanup - Clean Docker artifacts"
|
|
@echo ""
|
|
@echo "MAINTENANCE:"
|
|
@echo " build-clean - Clean all artifacts"
|
|
@echo " build-update-deps - Update dependencies"
|
|
@echo ""
|
|
@echo "EXAMPLES:"
|
|
@echo " just build-cross linux-amd64"
|
|
@echo " just build-docker linux-arm64"
|
|
@echo " just build-plugin nu_plugin_clipboard"
|