Skip to content

Commit

Permalink
Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanasa committed Jul 23, 2020
1 parent 6be92e9 commit 1122bc5
Show file tree
Hide file tree
Showing 22 changed files with 699 additions and 278 deletions.
2 changes: 1 addition & 1 deletion elite-navigator-galaxy/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
'use strict';

module.exports = require('./app/compile-galaxy');
module.exports = require('./src/compile-galaxy');
3 changes: 2 additions & 1 deletion elite-navigator-galaxy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"version": "1.0.0",
"description": "Elite Navigator galaxy compiler",
"keywords": [
"Elite Dangerous"
"Elite Dangerous",
"Navigator"
],
"author": "Ryan Vandersmith <https://rvanasa.github.io>",
"license": "ISC",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,9 +155,9 @@ const {gunzipSync} = require('zlib');

let system = systemNameMap[edsmStation.systemName.toLowerCase()];
if(!system) {
throw new Error('Unknown system: ' + edsmStation.systemName + ' (' + edsmStation.name + ')');
// console.warn('Unknown system: ' + edsmStation.systemName + ' (' + edsmStation.name + ')');
// continue;
// throw new Error('Unknown system: ' + edsmStation.systemName + ' (' + edsmStation.name + ')');
console.error('Unknown system: ' + edsmStation.systemName + ' (' + edsmStation.name + ')');
continue;
}
let station = galaxy.stations[system.stations.filter(station => galaxy.stations[station].name === edsmStation.name)[0]];
if(!station) {
Expand Down Expand Up @@ -214,4 +214,4 @@ const {gunzipSync} = require('zlib');
});
await fs.writeFile('../elite-navigator-web/public/data/galaxy.json', data);

})().catch(err => console.error(err));
})().catch(err => console.error(err) & process.exit(1));
2 changes: 2 additions & 0 deletions elite-navigator-relay/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea/
node_modules/
1 change: 1 addition & 0 deletions elite-navigator-relay/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
web: node .
3 changes: 3 additions & 0 deletions elite-navigator-relay/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
'use strict';

module.exports = require('./src/relay');
309 changes: 309 additions & 0 deletions elite-navigator-relay/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 18 additions & 0 deletions elite-navigator-relay/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "elite-navigator-relay",
"version": "1.0.0",
"description": "Elite Navigator socket relay",
"keywords": [
"Elite Dangerous",
"Navigator"
],
"author": "Ryan Vandersmith <https://rvanasa.github.io>",
"license": "ISC",
"main": "index.js",
"scripts": {
"start": "node ."
},
"dependencies": {
"socket.io": "^2.3.0"
}
}
Loading

0 comments on commit 1122bc5

Please sign in to comment.