-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Add watcher on Linux: change fs to node-watch #13448
Conversation
Any linux users to review this, @nosolosw maybe? |
Adding myself as a reviewer, will come to this later in the day. |
cc @notnownikki as well |
😀 😀 😀 I no longer have to rebuild everything from scratch when making changes! 👯♀️ Yes, works. Lovely, delightful, wonderful! |
@youknowriad added this to the 5.0 milestone so it doesn't get lost. Before approval, next step would be that someone tests this on OSX. |
It would be nice to test with Windows, too :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you re-run npm install
with the latest version of npm (v6.7.0) ? For me, many changes are introduced.
(Related: #13462)
@aduth I've ran into a trouble regarding auto addition of |
Ah yes, there are some platform-specific issues with npm on Linux, where See: npm/npm#17722 I've pushed up the resulting changes I see on my end with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, nice improvement 👍
Thank you. Yes, that was my original code but I deleted the Thank you 😄 |
…rnmobile/372-enter-key-detection-to-title * 'master' of https://github.com/WordPress/gutenberg: (29 commits) Update for RangeControl documentation (#12564) Plugin: Deprecate gutenberg_load_list_reusable_blocks (#13456) Update the columns attribute in onSelectImages so that if images are removed via the media modal, the columns can't be higher than the new number of images (#13488) Replace the fullscreen "exit" icon with a back arrow (#13403) Include :visited links in button color (#12183) Amazon Kindle block (#13510) Plugin: Deprecate gutenberg_prepare_blocks_for_js (#13457) Add watcher on Linux: change fs to node-watch (#13448) Plugin: Deprecate `gutenberg` theme support (#13458) Datepicker: Add inValidDay support (#12962) Block Switcher: Render disabled button even if multi-selection (#13431) Plugin: Deprecate gutenberg_register_post_types (#13468) Plugin: Deprecate register_tinymce_scripts (#13466) Set minimum of words for RSS excerpt (#13502) Plugin: Deprecate gutenberg_get_block_categories (#13454) Plugin: Deprecate gutenberg_content_block_version (#13469) API Fetch: Expose nonce on created middleware function (#13451) Plugin: Remove list screens integrations (#13459) Plugin: Remove core-defined block detection functions (#13467) Spec Parser: Move generated spec parser to package (#13493) ...
Thanks for fix. I've spent hours to find out the problem. |
You're welcome. It would be impossible if you haven't diagnosed it first 😄 |
* Add watcher on Linux: change fs to node-watch * Add watcher on Linux: Change fs to node-watch (pt.2.) * Add watcher on Linux: Change fs to node-watch (pt.3.) * Framework: Regenerate package-lock.json
* Add watcher on Linux: change fs to node-watch * Add watcher on Linux: Change fs to node-watch (pt.2.) * Add watcher on Linux: Change fs to node-watch (pt.3.) * Framework: Regenerate package-lock.json
Description
Fix to #13140.
It allows watcher to detect changes in files on Linux OS, as recursive option in
fs.watch
isn't supported on Linux.It adds a new developer dependency: node-watch.
How has this been tested?
I modified a file and the watcher recognized it and built the project.
My testing environment is Ubuntu 16.04.4
Screenshots
Types of changes
Bug fix
Checklist: