Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nwjs/grunt-nw-builder
Build NW.js applications for Mac, Windows and Linux using Grunt
https://github.com/nwjs/grunt-nw-builder
Last synced: 3 days ago
JSON representation
Build NW.js applications for Mac, Windows and Linux using Grunt
- Host: GitHub
- URL: https://github.com/nwjs/grunt-nw-builder
- Owner: nwjs
- License: mit
- Created: 2013-08-13T14:48:17.000Z (over 11 years ago)
- Default Branch: main
- Last Pushed: 2025-01-06T18:23:00.000Z (14 days ago)
- Last Synced: 2025-01-14T14:58:42.180Z (7 days ago)
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/grunt-nw-builder
- Size: 818 KB
- Stars: 793
- Watchers: 32
- Forks: 141
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# grunt-nw-builder
[![npm](https://img.shields.io/npm/v/grunt-nw-builder/latest)](https://www.npmjs.com/package/grunt-nw-builder/v/latest)
[![Join the chat at https://gitter.im/nwjs/nw-builder](https://badges.gitter.im/repo.svg)](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.