📝 rename node-webkit to NW.js in development docs
Replaces all occurences of node-webkit with NW.js in the development docs.
This commit is contained in:
parent
1679115302
commit
cda129b073
2 changed files with 8 additions and 8 deletions
|
@ -55,7 +55,7 @@ Modules for both sides:
|
||||||
|
|
||||||
* [Coding style](development/coding-style.md)
|
* [Coding style](development/coding-style.md)
|
||||||
* [Source code directory structure](development/source-code-directory-structure.md)
|
* [Source code directory structure](development/source-code-directory-structure.md)
|
||||||
* [Technical differences to node-webkit](development/atom-shell-vs-node-webkit.md)
|
* [Technical differences to NW.js](development/atom-shell-vs-nwjs.md)
|
||||||
* [Build instructions (Mac)](development/build-instructions-mac.md)
|
* [Build instructions (Mac)](development/build-instructions-mac.md)
|
||||||
* [Build instructions (Windows)](development/build-instructions-windows.md)
|
* [Build instructions (Windows)](development/build-instructions-windows.md)
|
||||||
* [Build instructions (Linux)](development/build-instructions-linux.md)
|
* [Build instructions (Linux)](development/build-instructions-linux.md)
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
# Technical differences to Node-Webkit
|
# Technical differences to NW.js
|
||||||
|
|
||||||
Like Node-Webkit, atom-shell provides a platform to write desktop applications
|
Like NW.js, atom-shell provides a platform to write desktop applications
|
||||||
with JavaScript and HTML, and has Node integration to grant access to low level
|
with JavaScript and HTML, and has Node integration to grant access to low level
|
||||||
system in web pages.
|
system in web pages.
|
||||||
|
|
||||||
But there are also fundamental differences between the two projects that make
|
But there are also fundamental differences between the two projects that make
|
||||||
atom-shell a completely separate product from Node-Webkit:
|
atom-shell a completely separate product from NW.js:
|
||||||
|
|
||||||
**1. Entry of application**
|
**1. Entry of application**
|
||||||
|
|
||||||
In Node-Webkit, the main entry of an application is a web page, you specify a
|
In NW.js, the main entry of an application is a web page, you specify a
|
||||||
main page in the `package.json` and it would be opened in a browser window as
|
main page in the `package.json` and it would be opened in a browser window as
|
||||||
the application's main window.
|
the application's main window.
|
||||||
|
|
||||||
|
@ -32,16 +32,16 @@ need a powerful machine to build atom-shell.
|
||||||
|
|
||||||
**3. Node integration**
|
**3. Node integration**
|
||||||
|
|
||||||
In Node-Webkit, the Node integration in web pages requires patching Chromium to
|
In NW.js, the Node integration in web pages requires patching Chromium to
|
||||||
work, while in atom-shell we chose a different way to integrate libuv loop to
|
work, while in atom-shell we chose a different way to integrate libuv loop to
|
||||||
each platform's message loop to avoid hacking Chromium, see the
|
each platform's message loop to avoid hacking Chromium, see the
|
||||||
[`node_bindings`](../../atom/common/) code for how that was done.
|
[`node_bindings`](../../atom/common/) code for how that was done.
|
||||||
|
|
||||||
**4. Multi-context**
|
**4. Multi-context**
|
||||||
|
|
||||||
If you are an experienced Node-Webkit user, you should be familiar with the
|
If you are an experienced NW.js user, you should be familiar with the
|
||||||
concept of Node context and web context, these concepts were invented because
|
concept of Node context and web context, these concepts were invented because
|
||||||
of how the Node-Webkit was implemented.
|
of how the NW.js was implemented.
|
||||||
|
|
||||||
By using the [multi-context](http://strongloop.com/strongblog/whats-new-node-js-v0-12-multiple-context-execution/)
|
By using the [multi-context](http://strongloop.com/strongblog/whats-new-node-js-v0-12-multiple-context-execution/)
|
||||||
feature of Node, atom-shell doesn't introduce a new JavaScript context in web
|
feature of Node, atom-shell doesn't introduce a new JavaScript context in web
|
Loading…
Add table
Reference in a new issue