Skip to content
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

fix: refactor file watchers (chokidar/linux workaround) #4950

Merged
merged 6 commits into from
Feb 6, 2019

Conversation

pimlie
Copy link

@pimlie pimlie commented Feb 4, 2019

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

When the previous pr (#4717) got merged pi0 commented 'For experiment' (i think we discussed it on discord as well), but since that code actually got released in 2.4 its time to refactor/cleanup it a bit so (mainly) the files watcher also benefit from the workaround.

I'd prefer to move the createFileWatcher method from the Builder class to some util file (and pass this.options.watchers as an argument), but I was not sure what the best place would be. A util file in the builder package or a filewatcher file in util package? Or just keep it as a class member?

(I will fix the tests once the above has been discussed)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly. (PR: #)
  • I have added tests to cover my changes (if not applicable, please state why)
  • All new and existing tests are passing.

pi0
pi0 previously approved these changes Feb 5, 2019
@pi0
Copy link
Member

pi0 commented Feb 5, 2019

@pimlie Would you please fix the CI?

@Atinux Atinux self-requested a review February 6, 2019 10:54
Atinux
Atinux previously approved these changes Feb 6, 2019
@pimlie pimlie dismissed stale reviews from Atinux and pi0 via 8e94af4 February 6, 2019 14:25
@codecov-io
Copy link

codecov-io commented Feb 6, 2019

Codecov Report

Merging #4950 into dev will increase coverage by 0.09%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##              dev    #4950      +/-   ##
==========================================
+ Coverage   92.78%   92.87%   +0.09%     
==========================================
  Files          73       73              
  Lines        2426     2429       +3     
  Branches      596      596              
==========================================
+ Hits         2251     2256       +5     
+ Misses        160      158       -2     
  Partials       15       15
Impacted Files Coverage Δ
packages/builder/src/builder.js 100% <100%> (ø) ⬆️
packages/vue-renderer/src/renderer.js 95.65% <0%> (+1.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4e30bda...904c220. Read the comment docs.

@Atinux Atinux self-requested a review February 6, 2019 17:33
Copy link
Member

@Atinux Atinux left a comment

Choose a reason for hiding this comment

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

Great refactor 💚

Copy link
Member

@pi0 pi0 left a comment

Choose a reason for hiding this comment

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

LGTM

@pi0 pi0 merged commit 5ec5932 into nuxt:dev Feb 6, 2019
@pimlie pimlie deleted the fix-chokidar-workaround-refactor branch February 7, 2019 07:52
@pi0 pi0 mentioned this pull request Mar 14, 2019
@danielroe danielroe added the 2.x label Jan 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants