Skip to content

Commit

Permalink
Initial commit of application wrapper & deps for #3
Browse files Browse the repository at this point in the history
  • Loading branch information
techninja committed Jul 29, 2015
1 parent 40d7f6e commit 359dfbf
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"stage": "development",
"license": "Apache-2.0",
"dependencies": {
"fs-plus": "^2.8.1"
"fs-plus": "^2.8.1",
"i18next": "^1.10.4",
"jquery": "^2.1.4",
"underscore": "^1.8.3"
},
"repository": {
"type": "git",
Expand Down
18 changes: 18 additions & 0 deletions src/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/*
* @file This is the central application logic and window management src file.
* This is the central render process main window JS, and has access to
* the DOM and all node abilities.
*/
"use strict";

// Libraries ==============================================---------------------
// Must use require syntax for including these libs because of node duality.
window.$ = window.jQuery = require('jquery');
window._ = require('underscore');
window.$.i18n = window.i18n = require('i18next');

// Main Process ===========================================---------------------
// Include global main process connector objects for the renderer (this window).
var remote = require('remote');
var mainWindow = remote.getCurrentWindow();
var app = remote.require('app');
1 change: 1 addition & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<title>PancakeCreator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="text/javascript" src="app.js"></script>
</head>
<body>
<div>Welcome to PancakeCreator</div>
Expand Down

0 comments on commit 359dfbf

Please sign in to comment.