This commit is contained in:
mahmoodsht 2026-05-23 13:56:10 +03:30
parent a1118cb2fc
commit 388d3da866
4 changed files with 72 additions and 18 deletions

10
dev.log Normal file
View File

@ -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)

13
dev_after_fix.log Normal file
View File

@ -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/

4
dist/index.html vendored
View File

@ -16,8 +16,8 @@
background: #23183E; background: #23183E;
} }
</style> </style>
<script type="module" crossorigin src="/assets/index-zxxbrZom.js"></script> <script type="module" crossorigin src="/assets/index-Ccau0Eyo.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BINX1_Nm.css"> <link rel="stylesheet" crossorigin href="/assets/index-xouV2fxu.css">
</head> </head>
<body> <body>

View File

@ -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