-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89ef9f2
commit e5eb81f
Showing
10 changed files
with
46 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,8 @@ | |
!lambda/**/*.js | ||
!resources/**/*/*.* | ||
|
||
!scripts/*.js | ||
|
||
!package.json | ||
!package-lock.json | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// scripts/createZipArchive.js | ||
|
||
const fs = require("fs"); | ||
const AdmZip = require("adm-zip"); | ||
|
||
console.log("createZipArchive"); | ||
const outputFile = "resources/s3_trigger/dummy.zip"; // Adjust the path as needed | ||
|
||
// Check if the zip file already exists | ||
if (fs.existsSync(outputFile)) { | ||
console.log("Zip file already exists."); | ||
return; | ||
} | ||
|
||
console.log("Creating new zip file..."); | ||
|
||
const zip = new AdmZip(); | ||
|
||
try { | ||
zip.addLocalFile("resources/s3_trigger/dummy.txt"); // Adjust the path as needed | ||
zip.writeZip(outputFile); | ||
console.log("Zip file written successfully."); | ||
} catch (error) { | ||
console.error("Error writing zip file:", error); | ||
process.exit(1); | ||
} |