A generator for node-webkit
npm install generator-node-webkit> Generator to easily maintain cross platform apps. The generator helps to setup a new project and package the app for different OS's and nwjs versions.
Install ``generator-node-webkit`:
``
npm install -g generator-node-webkit
Make a new directory, and cd into it:
``
mkdir my-new-project && cd $_
Run `yo node-webkit`:
``
yo node-webkit
Available generators:
* App
* node-webkit (aka node-webkit:app)
* Download
* node-webkit:download
* Examples
* node-webkit:examples
Sets up a new nwjs app, generating all the boilerplate you need to get started.
Example:
``
yo node-webkit
Downloads a specific nwjs version for an OS of your choice.
Generates needed grunt task to build the final app. You can call this generator at any time you want to have a new version nwjs. The sub generator pay attention to already downloaded nwjs source files and will skip the download.
Example:
``
yo node-webkit:download
[?] Please specify which version of node-webkit you want to download: (v0.12.0)
[?] Which platform you develop on? (Use arrow keys)
❯ MacOS32
MacOS64
Linux32
Linux64
Windows32`
Produces:``
├── nwjs
│ ├── MacOS32_v0.12.0 - The nwjs sources of this combination goes here
├── grunt-tasks - All costum grunt tasks will go in here
│ ├── MacOS32_v0.12.0.js - This is the main grunt task to build a dist for this version