forked from behavior3/behavior3editor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Desktop version now uses electron; Gulp now can package desktop versionl
- Loading branch information
Showing
5 changed files
with
79 additions
and
34 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
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,27 +1,28 @@ | ||
{ | ||
"author" : "Renato de Pontes Pereira", | ||
"name" : "behavior3editor", | ||
"version" : "0.3.0", | ||
"homepage" : "http://behavior3.com", | ||
"license" : "MIT", | ||
"bugs" : "https://github.com/behavior3/behavior3editor/issues", | ||
"repository" : "github:behavior3/behavior3editor", | ||
|
||
"devDependencies" : { | ||
"author": "Renato de Pontes Pereira", | ||
"name": "behavior3editor", | ||
"version": "0.3.0", | ||
"homepage": "http://behavior3.com", | ||
"license": "MIT", | ||
"bugs": "https://github.com/behavior3/behavior3editor/issues", | ||
"repository": "github:behavior3/behavior3editor", | ||
"devDependencies": { | ||
"electron-prebuilt" : "^0.33.8", | ||
"gulp" : "~3.9.0", | ||
"gulp-angular-templatecache" : "~1.7.0", | ||
"gulp-atom-electron" : "^0.17.2", | ||
"gulp-atom-shell" : "^0.10.0", | ||
"gulp-concat" : "~2.6.0", | ||
"gulp-jshint" : "~1.11.2", | ||
"gulp-uglify" : "~1.4.1", | ||
"gulp-connect" : "~2.2.0", | ||
"gulp-electron" : "0.0.9", | ||
"gulp-jshint" : "~1.11.2", | ||
"gulp-less" : "~3.0.3", | ||
"gulp-angular-templatecache" : "~1.7.0", | ||
"gulp-minify-css" : "~1.2.1", | ||
"gulp-minify-html" : "~1.0.4", | ||
"gulp-replace" : "~0.5.4", | ||
"gulp-uglify" : "~1.4.1", | ||
"jshint-stylish" : "~2.0.1", | ||
"merge-stream" : "~1.0.0" | ||
}, | ||
"dependencies": { | ||
|
||
} | ||
} | ||
"dependencies": {} | ||
} |
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,39 @@ | ||
var app = require('app'); // Module to control application life. | ||
var BrowserWindow = require('browser-window'); // Module to create native 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') { | ||
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. | ||
mainWindow = new BrowserWindow({width: 1000, height: 800}); | ||
|
||
// 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 = 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
{ | ||
"name" : "behavior3editor", | ||
"version" : "0.3.0", | ||
"main" : "index.html", | ||
"version" : "[BUILD_VERSION]", | ||
"main" : "desktop.js", | ||
"window": { | ||
"title" : "Behavior3 Editor (v0.3.0) - http://behavior3.com", | ||
"title" : "Behavior3 Editor (v[BUILD_VERSION]) http://behavior3.com", | ||
"position" : "center", | ||
"toolbar" : true, | ||
"frame" : true, | ||
"width" : 800, | ||
"height" : 600, | ||
"min_width" : 800, | ||
"min_height" : 600 | ||
"width" : 1000, | ||
"height" : 800, | ||
"min_width" : 1000, | ||
"min_height" : 800 | ||
} | ||
} |