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
- Host: GitHub
- URL: https://github.com/devinceble/karma-atomshell-launcher
- Owner: devinceble
- License: mit
- Created: 2014-09-17T02:36:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-09-17T06:44:30.000Z (over 11 years ago)
- Last Synced: 2025-02-15T15:17:57.285Z (12 months ago)
- Language: JavaScript
- Size: 137 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
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;
});
```