-
Notifications
You must be signed in to change notification settings - Fork 225
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] File watch #763
base: master
Are you sure you want to change the base?
[WIP] File watch #763
Conversation
Signed-off-by: John McCabe <john@johnmccabe.net>
Signed-off-by: John McCabe <john@johnmccabe.net>
Thank you for your contribution. I've just checked and your commit doesn't appear to be signed-off. That's something we need before your Pull Request can be merged. Please see our contributing guide. |
Signed-off-by: John McCabe <john@johnmccabe.net>
Signed-off-by: John McCabe <john@johnmccabe.net>
Excited to see this John, thank you for working on it again.
^ can you explain what this means in practice? You'd also mentioned something on DM to me about there not being a clean separation or similar? I wasn't sure what you were referring do. Was that meaning > 1 function in a stack.yml file? |
I feel like the watch should do an initial build?
|
If you set a watch in a multi-function dir the --filter does not limit change watches to just that function. |
This is what happened when editing the js file:
|
Yep, WIP has debug logging for fs events. |
Edited the quick.yml file and added my Docker Hub prefix, then got this:
Think it's because I missed |
What happens, if there's a build in progress, but it's slow i.e. pulling node_modules and I save again, but outside of the debounce time? |
Might be running several concurrent builds? It's just one function here. |
Description
Adds a
--watch
flag to theup
command which will watch the filesystem for changes and trigger anup
command, this includes a 500ms debounce interval to avoid unnecessary builds when many files change in quick succession.Ignores changes some standard dirs,
build
,template
,.git
, and some temp files~
, can be appended to with theignore-dir
andignore-suffix
args.Currently does not honour filter argument when working in a multi function dir.
Changes are watched relative to the
pwd
.Motivation and Context
How Has This Been Tested?
Tested locally on Windows10.
Needs feedback from Linux/OSX users.
Types of changes
Checklist:
git commit -s