Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

integration w/ node-dev #15

Closed
kyleroche opened this Issue · 3 comments

2 participants

@kyleroche

Hi, module works great. Very easy to setup. Thanks for the efforts.

Is there any way to get this to recompile under node-dev module?

@akoenig
Owner

Hey kyleroche, glad that you like it. Actually it should work.

Felix Gnass from node-dev says:

This does not only work for .js files, but also for .json or .node or .coffee files or any other custom extension that has > been added to require.extensions.

lingua uses JSON in i18n files so that in theory node-dev should recognize if there is a change and restart the app. I will check that out.

@kyleroche kyleroche closed this
@kyleroche kyleroche reopened this
@kyleroche

Let me know if I can help debug or anything. It appears that it's not reloading, even when express restarts due to changes in other files.

@akoenig
Owner

Okay, after hacking in some other projects I'm back to eliminate some issues in lingua now. Regarding this topic I found out that "node-dev" will only reload modules which will be loaded via "require". Anyway, lingua loads the files via "fs.readFile" which could be replaced by this more elegant way. Elegant, because of the fact that the JSON parsing will also take place in this function. So, it is in the master branch now and will be available in release 0.3.5.

@akoenig akoenig closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.