The commits from previous PR have been isolated and additionally, electron and cljs have been slightly bumped #2430
base: develop
Are you sure you want to change the base?
Conversation
(cherry picked from commit c2f590c)
(cherry picked from commit 3e63cc7)
(cherry picked from commit 5f6a041)
(cherry picked from commit b5b1e85)
(cherry picked from commit 0b7607f)
(cherry picked from commit 00cd192)
(cherry picked from commit 6f717d5)
(cherry picked from commit e80ae29)
(cherry picked from commit 85bc3fd)
@@ -101,7 +101,7 @@ | |||
meta["no-inspect"] = true; | |||
var final = safeStringify(exp); | |||
} | |||
ipc.sendToHost("browser-raise", [meta.obj, meta.ev, {result: final, meta: meta}]); | |||
ipcRenderer.sendToHost("browser-raise", [meta.obj, meta.ev, {result: final, meta: meta}]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'final' used out of scope.
deploy/core/main.js
Outdated
@@ -101,7 +101,7 @@ function parseArgs() { | |||
optimist.showHelp(); | |||
process.exit(0); | |||
} | |||
} | |||
}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unnecessary semicolon.
@@ -49,7 +49,7 @@ function createWindow() { | |||
}); | |||
|
|||
// and load the index.html of the app. | |||
window.loadUrl('file://' + __dirname + '/LightTable.html?id=' + window.id); | |||
window.loadURL('file://' + __dirname + '/LightTable.html?id=' + window.id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'__dirname' is not defined.
ipc = require("ipc"), | ||
var app = require('electron').app, // Module to control application life. | ||
BrowserWindow = require('electron').BrowserWindow, // Module to create native browser window. | ||
ipcMain = require("electron").ipcMain, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined.
BrowserWindow = require('browser-window'), // Module to create native browser window. | ||
ipc = require("ipc"), | ||
var app = require('electron').app, // Module to control application life. | ||
BrowserWindow = require('electron').BrowserWindow, // Module to create native browser window. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined.
var app = require('app'), // Module to control application life. | ||
BrowserWindow = require('browser-window'), // Module to create native browser window. | ||
ipc = require("ipc"), | ||
var app = require('electron').app, // Module to control application life. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
'require' is not defined.
Additionally, Hound issues have been overlooked. Must fix it this time. |
Hmmm, maybe fix optimist and request(new issue) on this same PR. |
Concerning the Hound issues, check my comments on #2416. |
Sure. 🍺 |
…ll works Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
7dbf895
to
fe8767c
Compare
Codecov Report
@@ Coverage Diff @@
## develop #2430 +/- ##
========================================
Coverage 16.66% 16.66%
========================================
Files 1 1
Lines 60 60
Branches 6 6
========================================
Hits 10 10
Misses 44 44
Partials 6 6 Continue to review full report at Codecov.
|
Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Signed-off-by: Pratik Karki <predatoramigo@gmail.com>
Replace optimist with yargs
Needs further investigation with yargs. Maybe it needs to use older version. |
There are some bugs with Electron UI handling. Needs further investigation before merging.