Permalink
Browse files

Initial Electron framework for HyperdriveToolkit.

  • Loading branch information...
roncli committed Mar 21, 2017
1 parent eea7ad1 commit 553ea28796b0e8389b13d401716568bebd9a0f9d
Showing with 136 additions and 0 deletions.
  1. +6 −0 .gitignore
  2. +10 −0 README.md
  3. +32 −0 app/index.js
  4. +27 −0 app/package.json
  5. +3 −0 app/site/base/chat.js
  6. +3 −0 app/site/base/datastore.js
  7. +3 −0 app/site/base/gui.js
  8. +1 −0 app/site/index.htm
  9. +51 −0 package.json
@@ -35,3 +35,9 @@ jspm_packages

# Optional REPL history
.node_repl_history

# Visual Studio Code
.vscode

# Electron
dist
@@ -0,0 +1,10 @@
# Hyperdrive Toolkit
A collection of tools designed to empower streamers to easily create advanced content for their streams and better manage their community.

## Running from Source
To run:
* Make sure you have [node.js](http://node.js) installed.
* Make sure you have [npm](https://www.npmjs.com/) installed. This should already be installed with node.js.
* From a command line, install Electron globally: `npm install -g electron`
* `cd` to the `app` directory
* Run `electron .` to launch the application.
@@ -0,0 +1,32 @@
const {app, BrowserWindow} = require("electron");

var win,
createWindow = () => {
win = new BrowserWindow({show: false, width: 800, height: 600, minWidth: 800, minHeight: 600, icon: __dirname + "/../logo/logo.ico"}); // TODO: Get the right icon.
win.loadURL("file://" + __dirname + "/site/index.htm");
win.setMenu(null);
win.maximize();

win.once("ready-to-show", () => {
win.show();
win.toggleDevTools(); // TODO: Remove for release.
});

win.on("closed", () => {
win = null;
});
};

app.on("ready", createWindow);

app.on("window-all-closed", () => {
if (process.platform !== "darwin") {
app.quit();
}
});

app.on("activate", () => {
if (win === null) {
createWindow();
}
});
@@ -0,0 +1,27 @@
{
"name": "HyperdriveToolkit",
"version": "0.0.1",
"description": "A collection of tools designed to empower streamers to easily create advanced content for their streams and better manage their community.",
"homepage": "https://github.com/roncli/HyperdriveToolkit",
"bugs": {
"url": "https://github.com/roncli/HyperdriveToolkit/issues",
"email": "roncli@roncli.com"
},
"license": "MIT",
"author": {
"name": "Ronald M. Clifford",
"email": "roncli@roncli.com",
"url": "http://www.roncli.com"
},
"repository": {
"type": "git",
"url": "https://github.com/roncli/HyperdriveToolkit.git"
},
"dependencies": {
"tmi.js": "1.1.2",
"twitch-api": "0.4.6"
},
"engines": {
"node": ">=7.0.0"
}
}
@@ -0,0 +1,3 @@
var Chat = function() {};

module.exports = Chat;
@@ -0,0 +1,3 @@
var DataStore = function() {};

module.exports = DataStore;
@@ -0,0 +1,3 @@
var Gui = function() {};

module.exports = Gui;
@@ -0,0 +1 @@
TESTING!
@@ -0,0 +1,51 @@
{
"name": "HyperdriveToolkit",
"version": "0.0.1",
"description": "A collection of tools designed to empower streamers to easily create advanced content for their streams and better manage their community.",
"homepage": "https://github.com/roncli/HyperdriveToolkit",
"bugs": {
"url": "https://github.com/roncli/HyperdriveToolkit/issues",
"email": "roncli@roncli.com"
},
"license": "MIT",
"author": {
"name": "Ronald M. Clifford",
"email": "roncli@roncli.com",
"url": "http://www.roncli.com"
},
"repository": {
"type": "git",
"url": "https://github.com/roncli/HyperdriveToolkit.git"
},
"devDependencies": {
"electron-builder": "15.6.2",
"electron": "1.6.2"
},
"engines": {
"node": ">=7.0.0"
},
"productName": "HyperdriveToolkit",
"build": {
"appId": "com.electron.hyperdrivetoolkit",
"copyright": "©2017 roncli Productions",
"productName": "HyperdriveToolkit",
"compression": "maximum",
"nsis": {
"oneClick": false,
"perMachine": true,
"allowToChangeInstallationDirectory": true,
"runAfterFinish": false,
"installerIcon": "logo/logo.ico"
},
"win": {
"icon": "logo/logo.ico --TODO"
},
"mac": {
"icon": "logo/logo.icns --TODO"
}
},
"scripts": {
"pack": "node_modules/.bin/build --dir",
"dist": "node_modules/.bin/build"
}
}

0 comments on commit 553ea28

Please sign in to comment.