karma-nwjs-phoenix-launcher

0.2.0 • Public • Published

karma-nwjs-phoenix-launcher

Launcher for NWJS, that uses nwjs-builder-phoenix to provide the NW.js builds


This launcher is forked from karma-nwjs-launcher and updated to use nwjs-builder-phoenix.

The main difference between this launcher and other NW.js Karma launchers is that this launcher does not bind to a particular build/version of NW.js. It is up to the project to configure (via nwjs-builder-phoenix) the build to use.


Installation

The easiest way is to keep karma-nwjs-phoenix-launcher as a devDependency in your package.json.

{
  "devDependencies": {
    "karma": "~0.10",
    "karma-nwjs-phoenix-launcher": "0.1.0"
  }
}

You can do it on the command line by:

npm install karma-nwjs-phoenix-launcher --save-dev

Usage

// karma.conf.js
module.exports = function(config) {
  // browsers: [ "debug" ],
  browsers: [ "NWJS" ],
  NWJS: {
    copy: {
      base: projectRoot,
      items: [ "xxx/src/config" ]
    }
  }
  
  /*
   * Using custom launchers, different flags can be appended to the nwjs cmd
   * to customise the behaviour
   */
  customLaunchers: {
     "debug": {
        base: "NWJS",
        flags: [ "--remote-debugging-port=9229" ]
     }
  }
};

Package Sidebar

Install

npm i karma-nwjs-phoenix-launcher

Weekly Downloads

1

Version

0.2.0

License

MIT

Unpacked Size

8.12 kB

Total Files

9

Last publish

Collaborators

  • kierans777