grunt-nw-builder
Version:
Build NW.js applications for Mac, Windows and Linux using Grunt.
54 lines (41 loc) • 1.15 kB
Markdown
# grunt-nw-builder
[](https://www.npmjs.com/package/grunt-nw-builder/v/latest)
[](https://app.gitter.im/#/room/#nwjs_nw-builder:gitter.im)
## Installation
Install package via `npm`:
```javascript
npm install grunt-nw-builder
```
Refer to `nw-builder`'s [Installation Guide](https://nwutils.io/nw-builder/install.html) 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:
```patch
grunt.initConfig({
nwjs: {
get: {
options: {
mode: "build",
- srcDir: "./package.json ./app/**/*",
},
+ src: [ "./package.json", "./app/**/*" ],
},
},
});
```
When globbing is disabled:
```patch
grunt.initConfig({
nwjs: {
get: {
options: {
mode: "get",
- srcDir: "./app",
glob: false,
},
+ src: "./app",
},
},
});
```
Refer to `nw-builder`'s [docs](https://github.com/nwutils/nw-builder) to learn what options to input.