Skip to content

Delete unused packges and file; Non-docker local dev#14

Open
mindblight wants to merge 7 commits into
masterfrom
arion/minor-cleanup
Open

Delete unused packges and file; Non-docker local dev#14
mindblight wants to merge 7 commits into
masterfrom
arion/minor-cleanup

Conversation

@mindblight
Copy link
Copy Markdown

@mindblight mindblight commented Sep 10, 2022

Main changes

  • Deleted kubernetes and google cloud compute configuration files since they're no longer used. See @sidetrackedmind's slack comment
  • Removed lodash library. It wasn't being used
  • Removed fs library. fs is built into node. That library is a security placeholder put in place by NPM to prevent malicious actors from coopting the package for supply chain attacks.
  • Added support for running locally without docker. Unless I'm running a DB, I prefer to avoid using docker. It consumes a lot more power than running directly on metal, and it's more complex to use. But, I don't want to remove that option for people who prefer it :).

Testing

Try following the Directly via npm run start directions in the readme, and confirm files are written to tmp/

Comment thread src/index.js
@@ -1,4 +1,4 @@
const axios = require('axios');
require("dotenv").config();
Copy link
Copy Markdown
Author

@mindblight mindblight Sep 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 This library loads the contents of .env file into process.env. It makes local development a lot easier.

@@ -1,6 +1,5 @@
var request = require('request');
var GtfsRealtimeBindings = require('gtfs-realtime-bindings');
const { reject } = require('lodash');
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 This was imported but unused.

Comment thread src/index.js
@@ -1,4 +1,4 @@
const axios = require('axios');
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 Imported but unused

Comment thread package.json
},
"devDependencies": {
"jest": "^27.5.1",
"lodash": "^4.17.11"
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💬 If we want to add lodash back, it likely needs to go under dependencies rather than devDependencies

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant