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

feature request: watching extra folders #9

Open
ronkorving opened this issue Oct 4, 2017 · 0 comments
Open

feature request: watching extra folders #9

ronkorving opened this issue Oct 4, 2017 · 0 comments

Comments

@ronkorving
Copy link
Member

ronkorving commented Oct 4, 2017

It would be great if the mage server would also restart if certain extra folders (that I want to be able to specify) observe changes. The direct reason for me wanting this is that on my project I have a folder with a bunch of JSON files that get cached on startup. It would be nice to restart the server when that data changes so caches can refresh.

I can imagine running the console with package.json script looking something like this:

{
    "scripts": {
        "develop": "mage-console --watch-paths ./static-data ./foo ./bar"
    }
}

PS: I don't mind making a PR for this of course, but anyone can pick this up if they have time in the short term and feel like doing this ;) Also would like to see feedback on the idea before developing.

stelcheck added a commit to stelcheck/mage-console that referenced this issue Nov 26, 2017
Fixes multiple outstanding issues, and pretifies error output by:

  1. using pretty-error to render the error
  2. stripping part of the stack that really should have no relevance

Fixes mage#4 mage#5 mage#8 mage#9 mage#11
stelcheck added a commit to stelcheck/mage-console that referenced this issue Nov 26, 2017
Fixes multiple outstanding issues, and pretifies error output by:

  1. using pretty-error to render the error
  2. stripping part of the stack that really should have no relevance

Fixes mage#4 mage#5 mage#8 mage#9 mage#11
stelcheck added a commit to stelcheck/mage-console that referenced this issue Dec 6, 2017
Fixes multiple outstanding issues, and pretifies error output by:

  1. using pretty-error to render the error
  2. stripping part of the stack that really should have no relevance

Fixes mage#4 mage#5 mage#8 mage#9 mage#11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant