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

Implement autoreloading on module change #25

Open
dbkaplun opened this issue Nov 1, 2014 · 2 comments
Open

Implement autoreloading on module change #25

dbkaplun opened this issue Nov 1, 2014 · 2 comments

Comments

@dbkaplun
Copy link

dbkaplun commented Nov 1, 2014

See otra-vez for a Node shell that does this.

@danielgtaylor
Copy link
Owner

This looks pretty cool. +1 for adding this to nesh, and it could be a built-in plugin so long as it doesn't introduce a bunch of dependencies.

Question - if I run otra file1.js and in file1 I require('file2') and then update file2 - does otra pick up the change?

@apaleslimghost
Copy link

Otra currently only hooks into require calls directly in the REPL, but that's something we could add.

Edit: see apaleslimghost/otra-vez#3.

Currently otra-vez only exports the REPL, I've filed apaleslimghost/otra-vez#4 to split it up. The only dependency the require portion has is clear-require, which is pretty small.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants