-
-
Notifications
You must be signed in to change notification settings - Fork 106
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Remove Array.findIndex polyfill - Fix test runner - Update .travis.yml to run node v5
- Loading branch information
1 parent
78a5dd1
commit 1d35ecd
Showing
9 changed files
with
34 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
.DS_Store | ||
build/ | ||
cache/ | ||
.cache/ | ||
node_modules | ||
npm-debug.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
#!/usr/bin/env node | ||
|
||
var path = require('path'); | ||
var proc = require('child_process') | ||
var electron = require('electron-prebuilt') | ||
const path = require('path'); | ||
const proc = require('child_process'); | ||
|
||
var args = [path.resolve(__dirname, '..'), '-r', '--test']; | ||
var opts = { stdio: 'inherit' }; | ||
var child = proc.spawn(electron, args, opts); | ||
const args = [path.resolve(__dirname, '..'), '-r', '--test']; | ||
const opts = { stdio: 'inherit' }; | ||
const child = proc.spawn('electron', args, opts); | ||
|
||
child.on('exit', function (exitCode) { | ||
child.on('exit', (exitCode) => { | ||
process.exit(exitCode); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,9 @@ | ||
var app = require('app'); | ||
var path = require('path'); | ||
var fs = require('fs'); | ||
const path = require('path'); | ||
const electron = require('electron'); | ||
const app = electron.app; | ||
|
||
// ROOT/src/browser/../../cache | ||
var cachePath = path.join(__dirname, '..', '..', 'cache'); | ||
var devMode = (process.argv || []).indexOf('-r') !== -1; | ||
|
||
// Note: It's important that you don't do anything with Electron | ||
// unless it's after 'ready', or else mysterious bad things will happen | ||
// to you. | ||
app.on('ready', function () { | ||
// Enable ES6 from this point on | ||
if (fs.statSyncNoException(cachePath) && !devMode) { | ||
require('electron-compile').initForProduction(cachePath); | ||
} else { | ||
require('electron-compile').init(); | ||
} | ||
|
||
require('./app'); | ||
const appRoot = path.join(__dirname, '..', '..'); | ||
require('electron-compile').init(appRoot, './app'); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters