Skip to content

✨ Refactor static snapshot logic into utils#465

Merged
wwilsman merged 1 commit intomasterfrom
ww/static-snapshot-utils
Jul 30, 2021
Merged

✨ Refactor static snapshot logic into utils#465
wwilsman merged 1 commit intomasterfrom
ww/static-snapshot-utils

Conversation

@wwilsman
Copy link
Copy Markdown
Contributor

What is this?

This not only cleans up the main snapshot command class and makes it easier to distinguish between different functionalities, but it also allows us to use these utils for other purposes, such as for static site generator SDKs (currently gatsby, could be more in the future).

For the most part, this PR just moves some stuff around. The withDefaults and serve methods are now utils, and the path-page mapping was moved into it's own util. Smaller changes were made to replace this references with config arguments.

@wwilsman wwilsman added the ✨ enhancement New feature or request label Jul 30, 2021
@wwilsman wwilsman requested a review from Robdel12 July 30, 2021 17:49
This not only cleans up the main snapshot command class and makes it easier to distinguish between
different functionalities, but it also allows us to use these utils for other purposes, such as
for static site generator SDKs (currently gatsby, could be more).
@wwilsman wwilsman force-pushed the ww/static-snapshot-utils branch from 02403b1 to 5fd3ac8 Compare July 30, 2021 17:53
@wwilsman wwilsman enabled auto-merge (squash) July 30, 2021 17:56
Copy link
Copy Markdown
Contributor

@Robdel12 Robdel12 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🏁

@wwilsman wwilsman merged commit 6d5fc49 into master Jul 30, 2021
@wwilsman wwilsman deleted the ww/static-snapshot-utils branch July 30, 2021 18:06
samarsault pushed a commit that referenced this pull request Mar 3, 2023
Bumps [@percy/core](https://github.com/percy/cli/tree/HEAD/packages/core) from 1.0.0-beta.74 to 1.0.0-beta.75.
- [Release notes](https://github.com/percy/cli/releases)
- [Commits](https://github.com/percy/cli/commits/v1.0.0-beta.75/packages/core)

---
updated-dependencies:
- dependency-name: "@percy/core"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

✨ enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants