-
Notifications
You must be signed in to change notification settings - Fork 64
feat: support loading of new files automatically with --live
#94
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
feat: support loading of new files automatically with --live
#94
Conversation
|
This is a second attempt at #53 now that I understand the problem a bit better :) |
--live
dkundel
left a comment
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.
Hi @imnotjames! Thank you so much for this contribution and sorry for the late reply. I added a few comments :)
this utilizes the chokidar watcher to watch all JS files under the functions directory and for all items within the assets directories. this also uses the lodash debouncer to prevent multiple files changing in quick succession (250ms) from causing too many reloads.
bb0166e to
1a2d83f
Compare
|
🚀 This PR has been merged! Once a new release is created, any changes will become available on npm. Until then, you can load and install it directly from the Pika CDN: |
Implements a "watcher" on files being added and removed when
--liveis specified in the command line arguments.Contributing to Twilio