-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Delete unused packges and file; Non-docker local dev #14
base: master
Are you sure you want to change the base?
Conversation
@@ -1,4 +1,4 @@ | |||
const axios = require('axios'); | |||
require("dotenv").config(); |
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.
💬 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'); |
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.
💬 This was imported but unused.
@@ -1,4 +1,4 @@ | |||
const axios = require('axios'); |
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.
💬 Imported but unused
"gtfs-realtime-bindings": "^0.0.5", | ||
"luxon": "^2.3.0", | ||
"request": "^2.88.0", | ||
"zlib": "^1.0.5" | ||
}, | ||
"devDependencies": { | ||
"jest": "^27.5.1", | ||
"lodash": "^4.17.11" |
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.
💬 If we want to add lodash
back, it likely needs to go under dependencies
rather than devDependencies
Main changes
lodash
library. It wasn't being usedfs
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.Testing
Try following the
Directly via npm run start
directions in the readme, and confirm files are written totmp/