浏览代码

add zip_project.ps1

tags/Baseline_30082024_FRONTEND_UAT
Terence 1年前
父节点
当前提交
7ce644f3c0
共有 2 个文件被更改,包括 14 次插入1 次删除
  1. +4
    -1
      .gitignore
  2. +10
    -0
      zip_project.ps1

+ 4
- 1
.gitignore 查看文件

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

.vscode
.vscode

#tsms.zip
tsms.zip

+ 10
- 0
zip_project.ps1 查看文件

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

正在加载...
取消
保存