-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Allow bundling of network in production build. #304
- Loading branch information
Showing
21 changed files
with
154 additions
and
233 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# Name of electron app | ||
# Will be used in production builds | ||
name = "Cosmos Voyager" | ||
|
||
# webpack-dev-server port | ||
wds_port = 9080 | ||
lcd_port = 9070 | ||
lcd_port_prod = 9071 | ||
relay_port = 9060 | ||
relay_port_prod = 9061 | ||
|
||
default_network = "gaia-2" | ||
google_analytics_uid = "UA-51029217-3" | ||
sentry_dsn = "https://4dee9f70a7d94cc0959a265c45902d84:[email protected]/288169" | ||
sentry_dsn_public = "https://[email protected]/288169" |
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,11 @@ | ||
"use strict" | ||
|
||
const fs = require(`fs`) | ||
const path = require(`path`) | ||
const toml = require(`toml`) | ||
|
||
module.exports = toml.parse( | ||
fs.readFileSync(path.join(__dirname, `../config.toml`), { | ||
encoding: `utf8` | ||
}) | ||
) |
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
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
1 change: 1 addition & 0 deletions
1
tasks/build/options.json → tasks/build/optionsSpecification.json
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,6 +1,7 @@ | ||
{ | ||
"commit": ["commit from which to build", "HEAD"], | ||
"gaia": ["path to the gaia binary"], | ||
"network": ["path to the default network to use", "app/networks/gaia-2"], | ||
"platform": ["the target platform {darwin|linux|win32}"], | ||
"skip-pack": ["skip the repackaging of the JS files", false] | ||
} |
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 |
---|---|---|
@@ -0,0 +1,20 @@ | ||
// this mocks the IPC layer and isolates the mainthread from the renderer thread in tests | ||
jest.mock("electron", () => ({ | ||
clipboard: { writeText: jest.fn() }, | ||
ipcRenderer: { send: jest.fn() }, | ||
ipcMain: { on: jest.fn() }, | ||
remote: { | ||
getGlobal(name) { | ||
if (name === "config") | ||
return { | ||
default_network: "mock-net", | ||
google_analytics_uid: "UA-TEST", | ||
sentry_dsn: | ||
"https://4dee9f70a7d94cc0959a265c45902d84:[email protected]/288169", | ||
sentry_dsn_public: | ||
"https://[email protected]/288169" | ||
} | ||
if (name === "root") return "./test/unit/tmp/test_root/" | ||
} | ||
} | ||
})) |
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.