Skip to content

devinceble/karma-atomshell-launcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

karma-atomshell-launcher

Launcher for Github Atom-Shell

TODO

  • Linux Support
  • Atom Shell App For Linux/Windows/Darwin Pre Built or Make One Your Self See Eg. Bellow
  • Windows Support
  • Darwin Support
  I think its easy to create atom-shell app 
  for testing on all platforms but I don't have time for now :-)

##Install

  $ npm install karma-atomshell-launcher --save-dev

##Making it work

karma.conf.js

  browsers: ['AtomShell']

Create a simple atom-shell application and Make it the default_app

Rename atom binary to karma-atom

export karma-atom path to your $PATH

or

symlink it to your /usr/bin or /home//bin

package.json

{
  "name": "Karma Atom Shell Launcher",
  "version": "0.0.1beta",
  "main": "app.js"
}

app.js

var BrowserWindow, app;

app = require('app');

BrowserWindow = require('browser-window');

app.on('window-all-closed', function() {
  if (process.platform !== 'darwin') {
    app.quit();
  }
  return true;
});

app.on('ready', function() {
  var mainWindow;
  mainWindow = new BrowserWindow({
    width: 800,
    height: 600,
    'dark-theme': true,
    'node-integration': 'all',
    'use-content-size': true,
    'web-preferences': {
      'web-security': false
    }
  });
  mainWindow.loadUrl('http://localhost:9876/');
  mainWindow.on('closed', function() {
    mainWindow = null;
    return true;
  });
  mainWindow.toggleDevTools();
  return true;
});

About

Karma Runner For Atom-Shell

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published