Home

Awesome

nwjs-vue

A clean NW.js & Vue.js quick start boilerplate.

Installation

Install boilerplate:

npm install -g @vue/cli @vue/cli-init
vue init elegantweb/nwjs-vue <project name>

Install dependencies:

cd <project name>
npm install

Getting Started

Development

Specify target NW.js version in package.json:

You can find available options here.

{
  [...]
  "build": {
    [...]
    "nwVersion": "0.40.1",
    [...]
  },
  [...]
}

Run NW.js application for development:

npm run dev

Production

Specify target platforms and architectures in package.json:

You can find available options here.

{
  [...]
  "build": {
    [...]
    "nwPlatforms": ["win"],
    "nwArchs": ["x64"],
    [...]
  },
  [...]
}

Build NW.js application for production:

npm run build

Alternatives