Skip to content

Commit

Permalink
Initial Electron framework for HyperdriveToolkit.
Browse files Browse the repository at this point in the history
  • Loading branch information
roncli committed Mar 21, 2017
1 parent eea7ad1 commit 553ea28
Show file tree
Hide file tree
Showing 9 changed files with 136 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -35,3 +35,9 @@ jspm_packages


# Optional REPL history # Optional REPL history
.node_repl_history .node_repl_history

# Visual Studio Code
.vscode

# Electron
dist
10 changes: 10 additions & 0 deletions README.md
Original file line number Original file line Diff line number Diff line change
@@ -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.
32 changes: 32 additions & 0 deletions app/index.js
Original file line number Original file line Diff line number Diff line change
@@ -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();
}
});
27 changes: 27 additions & 0 deletions app/package.json
Original file line number Original file line Diff line number Diff line change
@@ -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"
}
}
3 changes: 3 additions & 0 deletions app/site/base/chat.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
var Chat = function() {};

module.exports = Chat;
3 changes: 3 additions & 0 deletions app/site/base/datastore.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
var DataStore = function() {};

module.exports = DataStore;
3 changes: 3 additions & 0 deletions app/site/base/gui.js
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1,3 @@
var Gui = function() {};

module.exports = Gui;
1 change: 1 addition & 0 deletions app/site/index.htm
Original file line number Original file line Diff line number Diff line change
@@ -0,0 +1 @@
TESTING!
51 changes: 51 additions & 0 deletions package.json
Original file line number Original file line Diff line number Diff line change
@@ -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.