diff --git a/dev.log b/dev.log new file mode 100644 index 0000000..6a38b8c --- /dev/null +++ b/dev.log @@ -0,0 +1,10 @@ + +> @figma/my-make-file@0.0.1 dev +> vite --host 127.0.0.1 --strictPort + +error when starting dev server: +Error: Port 5173 is already in use + at Server.onError (file:///D:/Work/hamdast2/node_modules/vite/dist/node/chunks/dep-Dq2t6Dq0.js:25023:18) + at Server.emit (node:events:518:28) + at emitErrorNT (node:net:1943:8) + at process.processTicksAndRejections (node:internal/process/task_queues:90:21) diff --git a/dev_after_fix.log b/dev_after_fix.log new file mode 100644 index 0000000..1d5b262 --- /dev/null +++ b/dev_after_fix.log @@ -0,0 +1,13 @@ + +> @figma/my-make-file@0.0.1 predev +> powershell -NoProfile -ExecutionPolicy Bypass -Command "$p=(Get-NetTCPConnection -LocalPort 5173 -State Listen -ErrorAction SilentlyContinue | Select-Object -Expand OwningProcess -Unique); if($p){$p|ForEach-Object{Stop-Process -Id $_ -Force -ErrorAction SilentlyContinue}}" + + +> @figma/my-make-file@0.0.1 dev +> vite --host 127.0.0.1 --port 5173 --strictPort + +۱۰:۰۹:۴۵ [vite] (client) Re-optimizing dependencies because vite config has changed + + VITE v6.4.2 ready in 427 ms + + ➜ Local: http://127.0.0.1:5173/ diff --git a/dist/index.html b/dist/index.html index 842a55b..6f862e5 100644 --- a/dist/index.html +++ b/dist/index.html @@ -1,11 +1,11 @@ - - - - - - - new hamdast - + + + + + + + new hamdast + - - - - - -
- - - + + + + + + +
+ + + diff --git a/scripts/deploy-package.ps1 b/scripts/deploy-package.ps1 new file mode 100644 index 0000000..5947bc1 --- /dev/null +++ b/scripts/deploy-package.ps1 @@ -0,0 +1,31 @@ +param( + [string]$BuildDir = "dist", + [string]$ReleaseRoot = "release", + [string]$DeployFolderName = "upload" +) + +$ErrorActionPreference = "Stop" + +$projectRoot = Resolve-Path "." +$buildPath = Join-Path $projectRoot $BuildDir +$releasePath = Join-Path $projectRoot $ReleaseRoot +$deployPath = Join-Path $releasePath $DeployFolderName +$zipPath = Join-Path $releasePath ("$DeployFolderName.zip") + +if (-not (Test-Path $buildPath)) { + throw "Build output '$BuildDir' not found. Run build first." +} + +if (Test-Path $deployPath) { + Remove-Item -LiteralPath $deployPath -Recurse -Force +} +if (Test-Path $zipPath) { + Remove-Item -LiteralPath $zipPath -Force +} + +New-Item -ItemType Directory -Force -Path $deployPath | Out-Null +Copy-Item -Path (Join-Path $buildPath "*") -Destination $deployPath -Recurse -Force +Compress-Archive -Path (Join-Path $deployPath "*") -DestinationPath $zipPath -CompressionLevel Optimal + +Write-Host "Deploy folder created:" $deployPath +Write-Host "Zip archive created:" $zipPath