...
This commit is contained in:
parent
a1118cb2fc
commit
388d3da866
10
dev.log
Normal file
10
dev.log
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
|
||||
> @figma/my-make-file@0.0.1 dev
|
||||
> vite --host 127.0.0.1 --strictPort
|
||||
|
||||
[31merror 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)[39m
|
||||
13
dev_after_fix.log
Normal file
13
dev_after_fix.log
Normal 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
|
||||
|
||||
[2m۱۰:۰۹:۴۵[22m [36m[1m[vite][22m[39m [90m[2m(client)[22m[39m Re-optimizing dependencies because vite config has changed
|
||||
|
||||
[32m[1mVITE[22m v6.4.2[39m [2mready in [0m[1m427[22m[2m[0m ms[22m
|
||||
|
||||
[32m➜[39m [1mLocal[22m: [36mhttp://127.0.0.1:[1m5173[22m/[39m
|
||||
4
dist/index.html
vendored
4
dist/index.html
vendored
|
|
@ -16,8 +16,8 @@
|
|||
background: #23183E;
|
||||
}
|
||||
</style>
|
||||
<script type="module" crossorigin src="/assets/index-zxxbrZom.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-BINX1_Nm.css">
|
||||
<script type="module" crossorigin src="/assets/index-Ccau0Eyo.js"></script>
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-xouV2fxu.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
|
|
|||
31
scripts/deploy-package.ps1
Normal file
31
scripts/deploy-package.ps1
Normal 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
|
||||
Loading…
Reference in New Issue
Block a user