refactor(docs-infra): break up `deploy-to-firebase.js` script into fu… · angular/angular@29ca517 · GitHub
Skip to content

Commit 29ca517

Browse files
gkalpakjosephperrott
authored andcommitted
refactor(docs-infra): break up deploy-to-firebase.js script into functions (#39470)
This commit breaks up the code in `deploy-to-firebase.js` script, that we use for deploying angular.io to production, to smaller functions (instead of a monolithic block). This makes the script easier to maintain and also makes testing individual operations easier. The commit also updates the `deploy-to-firebase.spec.js` spec file to take advantage of the standalone functions to speed up testing by calling the corresponding function instead of having to spawn a new process and run the `deploy-to-firebase.js` script with the `--dry-run` flag. NOTE: Before updating the tests, I verified that the updated `deploy-to-firebase.js` script passed the old tests. PR Close #39470
1 parent c601a08 commit 29ca517

2 files changed

Lines changed: 292 additions & 243 deletions

File tree

‎aio/scripts/deploy-to-firebase.js‎

Lines changed: 168 additions & 131 deletions

0 commit comments

Comments
 (0)