Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
be9d145
commit b87ffe4
Showing
7 changed files
with
47 additions
and
30 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
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"name": "Kazinoki", | ||
"main": "browser.js", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/ne-sachirou/Kazinoki", | ||
"authors": [ | ||
"ne_Sachirou <utakata.c4se@gmail.com>" | ||
], | ||
"description": "Kazinoki", | ||
"moduleType": [ | ||
"es6" | ||
], | ||
"license": "GPL-3.0+", | ||
"ignore": [ | ||
"**/.*", | ||
"node_modules", | ||
"bower_components", | ||
"test", | ||
"tests" | ||
] | ||
} |
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
Empty file.
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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
var gulp = require('gulp'); | ||
|
||
gulp.task('default', () => console.log('gulpfile.babel.js')); |
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,39 +1,20 @@ | ||
var app = require('app'); // Module to control application life. | ||
var BrowserWindow = require('browser-window'); // Module to create native browser window. | ||
var app = require('app'); | ||
var BrowserWindow = require('browser-window'); | ||
|
||
// Report crashes to our server. | ||
require('crash-reporter').start(); | ||
|
||
// Keep a global reference of the window object, if you don't, the window will | ||
// be closed automatically when the JavaScript object is garbage collected. | ||
var mainWindow = null; | ||
|
||
// Quit when all windows are closed. | ||
app.on('window-all-closed', function() { | ||
// On OS X it is common for applications and their menu bar | ||
// to stay active until the user quits explicitly with Cmd + Q | ||
if (process.platform != 'darwin') { | ||
require('crash-reporter').start(); | ||
|
||
app.on('window-all-closed', () => { | ||
if ('darwin' !== process.platform) { | ||
app.quit(); | ||
} | ||
}); | ||
|
||
// This method will be called when Electron has finished | ||
// initialization and is ready to create browser windows. | ||
app.on('ready', function() { | ||
// Create the browser window. | ||
app.on('ready', () => { | ||
mainWindow = new BrowserWindow({width: 800, height: 600}); | ||
|
||
// and load the index.html of the app. | ||
mainWindow.loadUrl('file://' + __dirname + '/index.html'); | ||
|
||
// Open the DevTools. | ||
mainWindow.openDevTools(); | ||
|
||
// Emitted when the window is closed. | ||
mainWindow.on('closed', function() { | ||
// Dereference the window object, usually you would store windows | ||
// in an array if your app supports multi windows, this is the time | ||
// when you should delete the corresponding element. | ||
mainWindow.loadUrl('file://' + __dirname + '/browser.html'); | ||
mainWindow.on('closed', () => { | ||
mainWindow = null; | ||
}); | ||
}); |
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