🚀 DAY 4 OF LAUNCH WEEK:Introducing Socket Scanning for OpenVSX Extensions.Learn more →
Socket
Book a DemoInstallSign in
Socket

karma-nwjs-phoenix-launcher

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

karma-nwjs-phoenix-launcher

A Karma plugin. Launcher for node-webkit builds provided by nwjs-builder-phoenix

latest
Source
npmnpm
Version
0.2.0
Version published
Maintainers
1
Created
Source

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" ]
     }
  }
};

Keywords

karma-plugin

FAQs

Package last updated on 21 Feb 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts