├── .gitignore ├── LICENSE ├── README.md ├── SUMMARY.md └── demos ├── quick-start-window ├── index.html └── package.json └── quick-start ├── index.html └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | 5 | # Runtime data 6 | pids 7 | *.pid 8 | *.seed 9 | 10 | # Directory for instrumented libs generated by jscoverage/JSCover 11 | lib-cov 12 | 13 | # Coverage directory used by tools like istanbul 14 | coverage 15 | 16 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 17 | .grunt 18 | 19 | # node-waf configuration 20 | .lock-wscript 21 | 22 | # Compiled binary addons (http://nodejs.org/api/addons.html) 23 | build/Release 24 | 25 | # Dependency directory 26 | # https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git 27 | node_modules 28 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Way Lau 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # nwjs-demos 《NW.js 入门指南》 2 | Demos of [NW.js](http://nwjs.io/). 3 | 4 | 5 | ## How to run demos 6 | 7 | ### Install nw 8 | 9 | Make sure you had installed mw: 10 | 11 | ```sh 12 | npm install -g nw 13 | ``` 14 | 15 | ### Run demo with nw 16 | 17 | ```sh 18 | git clone https://github.com/waylau/nwjs-demos.git 19 | cd nwjs-demos/demos/quick-start 20 | npm start # or "nw ." 21 | ``` 22 | 23 | Let's start from [SUMMARY](SUMMARY.md)! 24 | 25 | 从[目录](SUMMARY.md)开始吧! -------------------------------------------------------------------------------- /SUMMARY.md: -------------------------------------------------------------------------------- 1 | # Summary 2 | 3 | This is the summary of my book. 4 | 5 | * [NW.js 快速入门](http://www.waylau.com/nwjs-quick-start/) 6 | * 未完。。。 7 | -------------------------------------------------------------------------------- /demos/quick-start-window/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NW.js 快速入门|www.waylau.com 6 | 7 | 8 |

NW.js 快速入门

9 | We are using node.js . 10 |
11 | More demos,see www.waylau.com 12 | 13 | -------------------------------------------------------------------------------- /demos/quick-start-window/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nw-quick-start-window-demo", 3 | "version": "0.0.1", 4 | "main": "index.html", 5 | "window": { 6 | "title": "nw-quick-start-window-demo", 7 | "toolbar": false, 8 | "frame": true, 9 | "show_in_taskbar":true, 10 | "width": 800, 11 | "height": 500, 12 | "position": "mouse", 13 | "min_width": 400, 14 | "min_height": 200, 15 | "max_width": 800, 16 | "max_height": 600 17 | } 18 | } -------------------------------------------------------------------------------- /demos/quick-start/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | NW.js 快速入门|www.waylau.com 6 | 7 | 8 |

NW.js 快速入门

9 | We are using node.js . 10 |
11 | More demos,see www.waylau.com 12 | 13 | -------------------------------------------------------------------------------- /demos/quick-start/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "nw-quick-start-demo", 3 | "version": "0.0.1", 4 | "main": "index.html" 5 | } --------------------------------------------------------------------------------