Pārlūkot izejas kodu

add zip_project.ps1

tags/Baseline_30082024_FRONTEND_UAT
Terence pirms 1 gada
vecāks
revīzija
7ce644f3c0
2 mainītis faili ar 14 papildinājumiem un 1 dzēšanām
  1. +4
    -1
      .gitignore
  2. +10
    -0
      zip_project.ps1

+ 4
- 1
.gitignore Parādīt failu

@@ -35,4 +35,7 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts

.vscode
.vscode

#tsms.zip
tsms.zip

+ 10
- 0
zip_project.ps1 Parādīt failu

@@ -0,0 +1,10 @@
$sourcePath = Get-Location
$destination = Join-Path -Path $sourcePath -ChildPath "tsms.zip"

$exclude = @(".git", ".next", ".vscode", "node_modules", ".gitignore", "zip_project.ps1", "tsms.zip")

$files = Get-ChildItem -Path $sourcePath -Exclude $exclude

Compress-Archive -Path $files -DestinationPath $destination -CompressionLevel Fastest -Force

Write-Host "Folder zipped successfully."

Notiek ielāde…
Atcelt
Saglabāt