Build NW.js applications for Mac, Windows and Linux using Grunt.


Keywords
NW.js, Desktop, Application, Grunt
License
MIT
Install
npm install grunt-nw-builder@4.7.1

Documentation

grunt-nw-builder

npm Join the chat at https://gitter.im/nwjs/nw-builder

Installation

Install package via npm:

npm install grunt-nw-builder

Refer to nw-builder's Installation Guide for more options.

Usage

nwjs.src is passed into options.srcDir internally. Hence you don't need to specify nwjs.srcDir.

When globbing is enabled:

grunt.initConfig({
  nwjs: {
    get: {
      options: {
        mode: "build",
-       srcDir: "./package.json ./app/**/*",
        version: "0.85.0",
      },
+     src: [ "./package.json", "./app/**/*" ],
    },
  },
});

When globbing is enabled:

grunt.initConfig({
  nwjs: {
    get: {
      options: {
        mode: "get",
-       srcDir: "./app",
        version: "0.85.0",
        glob: false,
      },
+     src: "./app",
    },
  },
});

Refer to nw-builder's docs to learn what options to input.