An open API service indexing awesome lists of open source software.

https://github.com/devinceble/karma-atomshell-launcher

Karma Runner For Atom-Shell
https://github.com/devinceble/karma-atomshell-launcher

Last synced: 11 months ago
JSON representation

Karma Runner For Atom-Shell

Awesome Lists containing this project

README

          

# karma-atomshell-launcher

> Launcher for Github Atom-Shell

# TODO
- [x] 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
```bash
$ npm install karma-atomshell-launcher --save-dev
```

##Making it work

karma.conf.js
```javscript
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
```json
{
"name": "Karma Atom Shell Launcher",
"version": "0.0.1beta",
"main": "app.js"
}

```

app.js
```javascript
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;
});
```