diff --git a/README.md b/README.md index 1db1588..7908f95 100644 --- a/README.md +++ b/README.md @@ -8,17 +8,6 @@ [![Massachusetts Institute of Technology (MIT)](https://s-a.github.io/license/img/mit.svg)](/LICENSE.md#mit) [![Donate](http://s-a.github.io/donate/donate.svg)](http://s-a.github.io/donate/) -# THE END -[![the-end](end.gif)](#theend) -**I've decided to stop working on iron-node. There's been a small community of contributors that have made iron-node great and encouraged me to keep going. Thank you! I 've learned a lot while resolving feature requests and bugs. ** -Why? At the end of 2016 a lot of solutions for debugging appeared at the sky of JavaScript. -If anyone wants to take over iron-node then please get in touch! - -## Useful alternatives -- https://code.visualstudio.com (Massive debug features!) -- https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js (The native way!) -- https://github.com/sindresorhus/awesome-nodejs#debugging--profiling (A lot more!) - ## Debug Node.js code with Chrome Developer Tools on Linux, Windows and OS X. This software aims to make things easier :smile:. With [ironNode](https://github.com/s-a/iron-node) you have the full power of [JavaScript debugging](https://developer.chrome.com/devtools/docs/javascript-debugging) within Chrome Developer Tools. @@ -56,4 +45,4 @@ iron-node PATH_TO_NODE_JS_FILE [--customparm1=foo --customparm2=bar]; ## [Contributing](/CONTRIBUTING.md) -## [License](/LICENSE.md) \ No newline at end of file +## [License](/LICENSE.md) diff --git a/app/index.js b/app/index.js index 0150d57..e990ffc 100644 --- a/app/index.js +++ b/app/index.js @@ -1,4 +1,4 @@ -const {app,globalShortcut} = require("electron"); +const {app} = require("electron"); var path = require("path"); // Module to control application life. const {BrowserWindow} = require("electron"); var Mnu = require(path.join(__dirname, "menu.js")); @@ -126,17 +126,7 @@ app.on("ready", function() { } } - globalShortcut.register("CommandOrControl+D", () => { - app.quit(); - }); - - globalShortcut.register("CommandOrControl+W", () => { - app.quit(); - }); - - globalShortcut.register("CommandOrControl+Q", () => { - app.quit(); - }); + mainWindow.webContents.on("devtools-opened", function() { diff --git a/bin/run.js b/bin/run.js index a86656a..cd0305e 100755 --- a/bin/run.js +++ b/bin/run.js @@ -1,5 +1,5 @@ #!/usr/bin/env node -var electron = require("electron-prebuilt"); +var electron = require("electron"); var proc = require("child_process"); var fs = require("fs"); var path = require("path"); diff --git a/docs/DEBUG-NODEJS-COMMANDLINE-APPS.md b/docs/DEBUG-NODEJS-COMMANDLINE-APPS.md index ddac4a0..05556f4 100644 --- a/docs/DEBUG-NODEJS-COMMANDLINE-APPS.md +++ b/docs/DEBUG-NODEJS-COMMANDLINE-APPS.md @@ -1,11 +1,12 @@ -# How to debug other Node.js command line applications like a Grunt task? +# How to debug other Node.js command line applications like a Grunt task -ironNode needs a JavaScript file as entry point for a debug session. -So first of all you have to locate the global or local installation of the commandline app you want to use. +ironNode needs a JavaScript file as entry point for a debug session. +So first of all you have to locate the global or local installation of the commandline app you want to use. Here we have a handy collection of scripts. You can simply copy and paste them into the ```scripts``` section of your ```package.json```. Feel free to :tada: contribute and add your scripts here! ## debug script calls + ```javascript ... "scripts": { @@ -18,13 +19,15 @@ Here we have a handy collection of scripts. You can simply copy and paste them i ... ``` -Now it is easy to start a debug session using ```npm run ...```. +Now it is easy to start a debug session using ```npm run ...```. ## usage + ```bash $ cd your-project-path; $ npm run debug-mocha; ``` -## :warning: Heads Up! -Some command line apps may use native modules. Please read [How to use native modules?](/docs/NATIVE-MODULES.md). \ No newline at end of file +## :warning: Heads Up + +Some command line apps may use native modules. Please read [How to use native modules?](/docs/NATIVE-MODULES.md). \ No newline at end of file diff --git a/package.json b/package.json index a3ad6c3..8f12534 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "preferGlobal": true, "scripts": { "start": "node bin/run.js", - "mdlint": "node_modules/.bin/mdlint glob \"docs/*.md\"", + "mdlint": "rem node_modules/.bin/mdlint glob \"docs/*.md\"", "test": "node node_modules/mocha/bin/_mocha", "test2": "node bin/run.js ./../test.js", "changelog": "node node_modules/changelog/bin/changelog.js all --markdown > ./CHANGELOG.md", @@ -44,22 +44,22 @@ "dependencies": { "commander": "^2.9.0", "deep-extend": "^0.4.1", - "electron-prebuilt": "^1.4.1", + "electron": "^1.4.15", "electron-recompile": "^1.0.16", "markdown": "^0.5.0", "nmp": "^1.0.3", "package.js": "^1.1.3", - "pretty-error": "^2.0.0", + "pretty-error": "^2.0.2", "syntax-error": "^1.1.6" }, "devDependencies": { "changelog": "^1.0.7", - "eslint": "^3.6.1", + "eslint": "^3.14.1", "eslint-config-xo-space": "^0.14.0", - "jshint": "^2.8.0", + "jshint": "^2.9.4", "mdlint": "^0.1.0", - "mocha": "^2.2.5", - "pre-commit": "^1.1.1", - "should": "^8.1.1" + "mocha": "^2.5.3", + "pre-commit": "^1.2.2", + "should": "^8.4.0" } }