forked from drmobile11/obsidian-rain
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.ps1
More file actions
59 lines (51 loc) · 2.24 KB
/
setup.ps1
File metadata and controls
59 lines (51 loc) · 2.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Enhanced Installation and Setup Script
# This script helps set up the modern Make It Rain plugin with all dependencies
Write-Host "🌧️ Make It Rain - Enhanced Setup Script" -ForegroundColor Cyan
Write-Host "=======================================" -ForegroundColor Cyan
# Check if we're in the right directory
if (!(Test-Path "package.json")) {
Write-Host "❌ Error: package.json not found. Please run this script from the plugin root directory." -ForegroundColor Red
exit 1
}
Write-Host "📦 Installing dependencies..." -ForegroundColor Yellow
npm install
# Create necessary directories if they don't exist
$directories = @("dist", ".obsidian", "src/components", "src/hooks")
foreach ($dir in $directories) {
if (!(Test-Path $dir)) {
New-Item -ItemType Directory -Path $dir -Force
Write-Host "📁 Created directory: $dir" -ForegroundColor Green
}
}
# Copy modern styles to the correct location
if (Test-Path "styles_modern.css") {
Copy-Item "styles_modern.css" "dist/styles_modern.css" -Force
Write-Host "🎨 Copied modern styles" -ForegroundColor Green
}
# Build the plugin
Write-Host "🔨 Building plugin..." -ForegroundColor Yellow
npm run build
if ($LASTEXITCODE -eq 0) {
Write-Host "✅ Build completed successfully!" -ForegroundColor Green
} else {
Write-Host "❌ Build failed. Check the errors above." -ForegroundColor Red
exit 1
}
Write-Host ""
Write-Host "🎉 Setup completed!" -ForegroundColor Green
Write-Host ""
Write-Host "📋 Next steps:" -ForegroundColor Cyan
Write-Host "1. Copy the files from 'dist/' folder to your Obsidian vault's plugins folder"
Write-Host "2. Enable the plugin in Obsidian settings"
Write-Host "3. Configure your Raindrop.io API token"
Write-Host "4. Enable 'Modern UI' in plugin settings for the enhanced experience"
Write-Host ""
Write-Host "🔧 Features enabled:" -ForegroundColor Cyan
Write-Host "• Modern responsive UI with React components"
Write-Host "• MDX support for rich content"
Write-Host "• Animated transitions and micro-interactions"
Write-Host "• Mobile-optimized layouts"
Write-Host "• Full-screen modal popups for item details"
Write-Host "• Collection tree view with icons and colors"
Write-Host "• Advanced search and filtering"
Write-Host ""