| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -208,11 +208,17 @@ This update is wholly and entirely a breaking one, and older versions won't be | |||
| 208 | 208 | maintained. For the purpose of migration, perhaps the biggest point to make | |
| 209 | 209 | is that async methods can now use promises, rather than just taking callbacks. Additionally, lots of method and property names have changed. | |
| 210 | 210 | ||
| 211 | - ## Node-Webkit ## | ||
| 211 | + ## nw.js (Node-Webkit) ## | ||
| 212 | 212 | ||
| 213 | + ### Native compilation for nw.js ### | ||
| 213 | 214 | A common issue is with nodegit not functioning properly inside of | |
| 214 | - [node-webkit](http://github.com/rogerwang/node-webkit) applications. Because nodegit | ||
| 215 | + [nw.js](http://github.com/nwjs/nw.js) applications. Because nodegit | ||
| 215 | 216 | is a native module, it has to be rebuilt for node-webkit using | |
| 216 | - [nw-gyp](http://github.com/rogerwang/nw-gyp). By default, nodegit will look in the root package's package.json for an `engines` property, and within look for a `node-webkit` property that holds a specific version of node-webkit. The value of this property is what will get passed as the `--target` argument to `nw-gyp configure`. | ||
| 217 | + [nw-gyp](http://github.com/rogerwang/nw-gyp). By default, nodegit will look in the root package's package.json for an `engines` property, and within look for a `nw.js` property (or a `node-webkit` if the prior isn't found) that holds a specific version of nw.js. The value of this property is what will get passed as the `--target` argument to `nw-gyp configure`. | ||
| 217 | 218 | ||
| 218 | - Currently, support for node-webkit is limited, although we intend to support it better in the future. | ||
| 219 | + ### Version incompatibiltiy ### | ||
| 220 | + Prior to version 0.2.6, nodegit used [nan](http://github.com/rvagg/nan) v1.4.3. As of 0.2.6, nodegit uses nan v1.5.1 to provide support for io.js. Unfortunately, this breaks some nw.js compatability. With nw.js 0.12+, the name was changed to nw.js from node-webkit. The alpha currently still breaks with nodegit due to the nan update, but should be fixed in the final v0.12.0 release. Åpplications using previous versions of node webkit have 2 options: | ||
| 221 | + 1) Use an older version (v0.2.4 or earlier) of nodegit | ||
| 222 | + 2) Use [npm shrinkwrap](https://docs.npmjs.com/cli/shrinkwrap) to force nodegit to use nan v1.4.3. Since the binary always recompiles when being used with nw.js, you shouldnt have to do anything else to make sure it works. As of nodegit v0.2.6, the change to nan v1.4.3 doesn't cause any problems. | ||
| 223 | + | ||
| 224 | + Currently, support for nw.js is limited, although we intend to support it better in the future. | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments