Skip to content
This repository has been archived by the owner on Mar 4, 2022. It is now read-only.

Misc updates: global require, Ctrl-c + SIGINT #105

Merged
merged 2 commits into from
Nov 22, 2019
Merged

Conversation

ryan-roemer
Copy link
Member

@@ -52,7 +52,7 @@ Dashboard.prototype._configureKeys = function () {
// this key will be watched on the global screen
this.screen.ignoreLocked = ["C-c"];
this.screen.key("C-c", () => {
process.exit(0); // eslint-disable-line no-process-exit
process.kill(process.pid, "SIGINT");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep this looks right! The only thing we did different in webpack-dashboard was listen for "escape" and "q" as valid keys to trigger sending SIGINT. We could consider doing that here as well.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea! Added #106 to allow some discussion first.

Copy link

@parkerziegler parkerziegler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me! One smol comment about supporting other keys to send SIGINT which we can take or leave.

@ryan-roemer ryan-roemer merged commit 1ef0be4 into master Nov 22, 2019
@ryan-roemer ryan-roemer deleted the bug/global-require branch November 22, 2019 18:51
@ryan-roemer
Copy link
Member Author

Released in [email protected]

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

Successfully merging this pull request may close these issues.

Error: Cannot find module 'nodejs-dashboard'
2 participants