Skip to content

Commit

Permalink
Merge pull request #126 from s-a/zion
Browse files Browse the repository at this point in the history
Zion
  • Loading branch information
s-a authored Jan 25, 2017
2 parents e64c5b9 + a63b88d commit 9186b7a
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 39 deletions.
13 changes: 1 addition & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -56,4 +45,4 @@ iron-node PATH_TO_NODE_JS_FILE [--customparm1=foo --customparm2=bar];

## [Contributing](/CONTRIBUTING.md)

## [License](/LICENSE.md)
## [License](/LICENSE.md)
14 changes: 2 additions & 12 deletions app/index.js
Original file line number Diff line number Diff line change
@@ -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"));
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion bin/run.js
Original file line number Diff line number Diff line change
@@ -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");
Expand Down
15 changes: 9 additions & 6 deletions docs/DEBUG-NODEJS-COMMANDLINE-APPS.md
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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).
## :warning: Heads Up

Some command line apps may use native modules. Please read [How to use native modules?](/docs/NATIVE-MODULES.md).
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit 9186b7a

Please sign in to comment.