-
Notifications
You must be signed in to change notification settings - Fork 122
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
Revisit dev watcher-logic #351
Comments
Perhaps we could simply rely on the watcher provided with webpack, that should not only solve the issue but due to its caching-logic should speed-up the bundling process. |
@nickbalestra tagging templates here as watching mechanism once templates are done could just be part of each template's configuration and in case this issue would fix. |
Totally
|
Hi guys, noticed you have this issue open and wanted to ask if there could be an improvement to the watcher to ignore changes in anything mentioned in I usually always end up with Also tracking changes on a huge |
Hey Dev, did you find any work-around/solution to this? On a side I started doing some explorations on the watcher logic, and I think there are few small things we could quickly change to improve the overall DX.
|
Hi, |
This should address the first point -> #632. Perhaps it could help you in the scenario you describe where you have to disable the watcher if working on multiple components |
It would be nice to be able to define a white/blacklist for the watcher in, say, package.json or oc.json or as a CLI arg |
Agree @danrr. I feel it could be a good thing to host that within the oc.json |
I did some investigations for the
My question is, if we move those to be properly ignored and not added to the tree of files to be watched, will this be enough for you @debopamsengupta @danrr or will that still leave open cases where we actually need to add further ignores? My feeling is that this should solve the majority of the cases without the need of of an ignore configuration. at least for now |
It would make it nicer but there is still one big issue: project configuration folders for various IDEs like .idea or .vscode. It'd be a losing battle to try and ignore any possible IDE or VCS config by default... |
fair point. The question is (as those file don't normally change that often and don't hide universes like |
We have had a lot of complaints from people within Skyscanner about IDE config folders specifically. They can cause the registry to repackage at random times causing some frustration. |
With #632 I think that shouldn't happen anymore as the repackaging will not happen for the whole registry anymore, and secondary only if a file within the component has changed. I suggest we could first try to have another PR to fix what @debopamsengupta outlines in regard to |
I also see we don't ignore dotFiles. @matteofigus any specific reasons for this? If we set this to true probably most of the iIDE config issues reported should be addressed. @danrr do you foresee any issue in ignoring dotfiles within components folders in general while watching? |
Unsure if we'd want to specify ignoring of dotfiles, I like the idea of either
|
@debopamsengupta published |
As per #346 there will be the need to rework the dev watcher logic.
Now we watch on changes on 'server.js' but with the new compiler pipeline we open scenarios where changes might happen in a local module file and not directly in the main entry server file.
The text was updated successfully, but these errors were encountered: