Skip to content

Conversation

wietsevenema
Copy link
Contributor

@wietsevenema wietsevenema commented Sep 1, 2025

Split up the large deployer.js file into smaller, more focused modules
and organize the files in lib into the following directories:

  • deployment: Contains the logic for deploying to Cloud Run.
  • cloud-api: Contains the logic for interacting with Google Cloud APIs.
  • util: Contains a few utility functions.

I did this in three commits:

  • 8019591 Refactor Client Handling
    This commit focuses on managing shared Google Cloud client libraries by introducing a context object. This object holds all client instances and be passed to various functions, making the code easier to split.

  • 90dbb05 Move Files
    Moves existing files into the new directory structure. For example, lib/cloud-run-deploy.js becomes lib/deployment/deployer.js.

  • 5a64211 Split the Big Deployer File
    Splits the large deployer.js file into smaller, more focused modules. For instance, utility functions like zipFiles movesto lib/util/archive.js, and Cloud API-specific functions move to their respective files within lib/cloud-api.

@wietsevenema wietsevenema force-pushed the move-files branch 3 times, most recently from 9059e3c to b4540b3 Compare September 1, 2025 10:52
@wietsevenema wietsevenema marked this pull request as draft September 1, 2025 10:56
@wietsevenema wietsevenema force-pushed the move-files branch 3 times, most recently from 776be5e to 816ebbe Compare September 2, 2025 12:50
@wietsevenema wietsevenema force-pushed the move-files branch 3 times, most recently from 85608d2 to 8308e46 Compare September 2, 2025 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant