Skip to content

Commit

Permalink
- migrate from electron-prebuilt to electron
Browse files Browse the repository at this point in the history
- update dependencies (may fix #119, may fix #120)
- fix mdlints
  • Loading branch information
s-a committed Jan 25, 2017
1 parent e64c5b9 commit ee0dada
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
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 ee0dada

Please sign in to comment.