From 7ce644f3c0f24e22b10b874e38add706a9c8eb0c Mon Sep 17 00:00:00 2001 From: Terence Hui Date: Fri, 8 Mar 2024 11:48:08 +0800 Subject: [PATCH] add zip_project.ps1 --- .gitignore | 5 ++++- zip_project.ps1 | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 zip_project.ps1 diff --git a/.gitignore b/.gitignore index 51657db..1c56125 100644 --- a/.gitignore +++ b/.gitignore @@ -35,4 +35,7 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -.vscode \ No newline at end of file +.vscode + +#tsms.zip +tsms.zip \ No newline at end of file diff --git a/zip_project.ps1 b/zip_project.ps1 new file mode 100644 index 0000000..07cff92 --- /dev/null +++ b/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." \ No newline at end of file