grunt-contrib-node-webkit

0.0.1 • Public • Published

Build Status

What's grunt-contrib-node-webkit ?

A grunt task to build node-webkit apps. It builds the app package for specified platforms (win, mac, linux32, linux64).

Getting started

This plugin requires Grunt ~0.4.2

Check out the Getting Started guide to learn how to create a Gruntfile

Install with :

$ npm install grunt-grunticon --save-dev

Usage

Gruntfile.js example :

module.exports = function (grunt) {
  grunt.initConfig({
    pkg: grunt.file.readJSON('package.json'),
    nw: {
      binaries: { // Node-webkit binaries for each platform (win, mac, linux32, linux64)
        linux64: '/opt/node-webkit/node-webkit-v0.8.3-linux-x64/nw',
        win: '/opt/node-webkit/node-webkit-v0.8.3-win-ia32/nw.exe'
      },
      options: {
        dist: 'dist'
      },
      targets: ['linux64', 'win'], // Platform targets to build
      src: [ // Files to include in app package
        'package.json',
        'index.html',
        'index.js',
        'node_modules/anymodulename/**/*',
        // ...
      ]
    }
  });
  grunt.loadNpmTasks('grunt-contrib-node-webkit');
};

Build the app packages :

$ grunt nw

Enjoy !

Readme

Keywords

none

Package Sidebar

Install

npm i grunt-contrib-node-webkit

Weekly Downloads

2

Version

0.0.1

License

none

Last publish

Collaborators

  • openhoat