Conversation
Merged
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #52
note includes #78 / #79
Introduces 2 new crates
notify- CC0 ¬ify-debouncer-mini- MIT or Apache 2.0.Should this be feature gated?
Watch mode
The Pact Stub Server now supports a watch mode that automatically monitors pact files and directories for changes and reloads them without restarting the server. This feature is particularly useful during development when pact files are frequently updated.
Usage
To enable watch mode, use the
--watchor-wflag:Supported Source Types
Watch mode supports the following pact source types:
--file): Individual pact files are monitored for changes--dir): Entire directories are monitored recursively for changes to pact filesNote: URL sources (
--url) and Pact Broker sources (--broker-url) are not supported for watching as they are remote resources.File System Events
The watcher responds to the following types of file system events:
Limitations
Testing
Run
./scripts/test_watch.shand follow the instructionsIt will
/tmpIn another terminal,