mirror of
https://github.com/cloud-shuttle/leptos-shadcn-ui.git
synced 2025-12-22 22:00:00 +00:00
- Fixed compilation errors in menubar, combobox, and drawer packages - Updated to tailwind-rs-core v0.4.0 and tailwind-rs-wasm v0.4.0 for WASM compatibility - Cleaned up unused variable warnings across packages - Updated release documentation with WASM integration details - Demo working with dynamic color API and Tailwind CSS generation - All 25+ core components ready for crates.io publication Key features: ✅ WASM compatibility (no more tokio/mio dependencies) ✅ Dynamic Tailwind CSS class generation ✅ Type-safe color utilities ✅ Production-ready component library
112 lines
3.4 KiB
Python
Executable File
112 lines
3.4 KiB
Python
Executable File
#!/usr/bin/env python3
|
|
"""
|
|
Script to publish the next batch of 10 component crates.
|
|
Batch 3: Components 16-25
|
|
"""
|
|
|
|
import os
|
|
import subprocess
|
|
import sys
|
|
import time
|
|
|
|
def publish_component(component):
|
|
"""Publish a single component crate"""
|
|
component_path = os.path.join("packages/leptos", component)
|
|
|
|
try:
|
|
print(f"🚀 Publishing {component}...")
|
|
|
|
# Change to component directory
|
|
original_cwd = os.getcwd()
|
|
os.chdir(component_path)
|
|
|
|
# Run cargo publish
|
|
result = subprocess.run(
|
|
["cargo", "publish"],
|
|
capture_output=True,
|
|
text=True,
|
|
timeout=300 # 5 minute timeout
|
|
)
|
|
|
|
if result.returncode == 0:
|
|
print(f"✅ Successfully published {component}")
|
|
return {"component": component, "status": "success", "error": None}
|
|
else:
|
|
error_msg = result.stderr.strip()
|
|
print(f"❌ Failed to publish {component}: {error_msg}")
|
|
return {"component": component, "status": "failed", "error": error_msg}
|
|
|
|
except subprocess.TimeoutExpired:
|
|
print(f"⏰ Timeout publishing {component}")
|
|
return {"component": component, "status": "timeout", "error": "Timeout after 5 minutes"}
|
|
except Exception as e:
|
|
print(f"💥 Exception publishing {component}: {str(e)}")
|
|
return {"component": component, "status": "exception", "error": str(e)}
|
|
finally:
|
|
os.chdir(original_cwd)
|
|
|
|
def main():
|
|
print("🚀 Publishing Batch 3: Components 16-25")
|
|
print("======================================")
|
|
|
|
# Next 10 components to publish (alphabetically)
|
|
components = [
|
|
"command",
|
|
"context-menu",
|
|
"date-picker",
|
|
"dialog",
|
|
"drawer",
|
|
"dropdown-menu",
|
|
"form",
|
|
"hover-card",
|
|
"input-otp",
|
|
"label"
|
|
]
|
|
|
|
print(f"Publishing {len(components)} components:")
|
|
for i, comp in enumerate(components, 1):
|
|
print(f" {i}. {comp}")
|
|
|
|
print(f"\n📦 Starting publication of {len(components)} crates...")
|
|
|
|
results = []
|
|
successful = 0
|
|
failed = 0
|
|
|
|
for i, component in enumerate(components, 1):
|
|
print(f"\n[{i}/{len(components)}] Publishing {component}...")
|
|
result = publish_component(component)
|
|
results.append(result)
|
|
|
|
if result["status"] == "success":
|
|
successful += 1
|
|
else:
|
|
failed += 1
|
|
|
|
# Add delay between publications to respect rate limits
|
|
if i < len(components):
|
|
print("⏳ Waiting 10 seconds before next publication...")
|
|
time.sleep(10)
|
|
|
|
# Print summary
|
|
print(f"\n📊 Batch 3 Summary")
|
|
print("=" * 20)
|
|
print(f"✅ Successful: {successful}")
|
|
print(f"❌ Failed: {failed}")
|
|
print(f"📦 Total: {len(components)}")
|
|
|
|
if failed > 0:
|
|
print(f"\n❌ Failed Components:")
|
|
for result in results:
|
|
if result["status"] != "success":
|
|
print(f" - {result['component']}: {result['error']}")
|
|
|
|
if successful == len(components):
|
|
print(f"\n🎉 ALL {len(components)} COMPONENTS IN BATCH 3 PUBLISHED SUCCESSFULLY!")
|
|
print("🌐 Components 16-25 are now available on crates.io with signal management features!")
|
|
else:
|
|
print(f"\n⚠️ {failed} components failed to publish. Check the errors above.")
|
|
|
|
if __name__ == "__main__":
|
|
main()
|