arikw / chrome-extensions-reloader

A chrome extension for reloading unpacked extensions
https://chrome.google.com/webstore/detail/extensions-reloader/fimgfedafeadlieiabdeeaodndnlbhid
Apache License 2.0
276 stars 38 forks source link

Improvement Request: Watch a folder #8

Closed paganaye closed 3 years ago

paganaye commented 7 years ago

Would be nice if you could look at at the extension folder and detect when a file has changed.

amitg87 commented 6 years ago

Chrome extensions do not have access to file system and file events. This is not happening. Issue can be closed.

mickdekkers commented 6 years ago

@amitg87 while it is true that Chrome extensions do not have access to the file system, they are able to communicate with native applications that do. See https://developer.chrome.com/apps/nativeMessaging

Using Chrome's Native Messaging API, a Node.js (or any other language) app could be written to communicate with the Chrome extensions reloader, notifying it when the project files change. If it's a Node app, something like Chokidar could be used to do the actual file watching.

amitg87 commented 6 years ago

@mickdekkers - I agree, it can be done. But NodeJS app you are talking about is not a chrome extension. Once such NodeJS app is built - this extension can be integrated to it. So until then this issue can parked/closed. New issue can be created about such integration in future.

arikw commented 3 years ago

Thank you all for your comments. I would love to feature recipes of folder watching using 3rd party tools that trigger a reload using http://reload.extensions url, if someone would like to provide such examples