Skip to content

node-theseus and grunt #78

@devitito

Description

@devitito

Hi!
I created a grunt task to watch my files and restart node-theseus in case any of my file is changed. I use no-demon and I launch node-theseus within the exec option of grunt-nodemon (https://github.com/ChrisWren/grunt-nodemon#exec)

The problem is when I want to stop debugging. Somehow after only 2 process.exit caught grunt exits and node-theseus keeps running and the port 888 is still in use. That means that I can't start another debug session with node-theseus.

In node-theseus, you hard code the number of time to receive process.exit before exiting:
if (++exitCount >= 3) {
...

Would it be possible to pass this value (3) as a parameter? It would fix my issue...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions