Skip to content
This repository has been archived by the owner on Sep 19, 2021. It is now read-only.

Removes unused packages as reported by depcheck #568

Merged
merged 2 commits into from Jul 17, 2018
Merged

Conversation

ryanhofdotgov
Copy link
Contributor

Evaluted unused dependencies reported by depcheck; filtered out
those that had references in webpack.config.js, gulpfile.js,
eqip.scss, and package.json blocks (excluding dependencies).
and gulpfile.js

Evaluted unused dependencies reported by `depcheck`; filtered out
those that had references in `webpack.config.js`, `gulpfile.js`,
`eqip.scss`, and `package.json` blocks (excluding `dependencies`).
and `gulpfile.js`
package.json Outdated
@@ -17,42 +17,33 @@
"@18f/stylelint-rules": "^2.0.0",
"axios": "^0.18.0",
"axios-mock-adapter": "^1.15.0",
"babel-core": "^6.26.3",
"babel-jest": "^23.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Definitely need these two!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yarn figures out that we need it – do we need to put it as a top-level dependency?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

(i.e., jest pulls it in, so does babel-loader)

Copy link
Contributor

Choose a reason for hiding this comment

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

➜  e-QIP-prototype git:(remove-unused) yarn
yarn install v1.7.0
[1/5] 🔍  Resolving packages...
[2/5] 🚚  Fetching packages...
[3/5] 🔗  Linking dependencies...
warning " > babel-loader@7.1.4" has unmet peer dependency "babel-core@6".
...

Copy link
Contributor

Choose a reason for hiding this comment

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

Good to go after that's re-added!

Copy link
Contributor

@afeld afeld left a comment

Choose a reason for hiding this comment

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

Note there's another package.json, but those are just for running integration tests.

package.json Outdated
@@ -17,42 +17,33 @@
"@18f/stylelint-rules": "^2.0.0",
"axios": "^0.18.0",
"axios-mock-adapter": "^1.15.0",
"babel-core": "^6.26.3",
"babel-jest": "^23.0.1",
Copy link
Contributor

Choose a reason for hiding this comment

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

Good to go after that's re-added!

@ryanhofdotgov
Copy link
Contributor Author

Thanks! I had somehow missed that warning. After reading yarnpkg/yarn#5347 I've realized yarn's dependency management was different than what I was expecting.

Not touching the spec tests since they aren't working yet. Did this clean up to address some of the "high" severity items in the Synk report on #563

@ryanhofdotgov ryanhofdotgov merged commit 83e3a1b into develop Jul 17, 2018
@ryanhofdotgov ryanhofdotgov deleted the remove-unused branch July 17, 2018 05:36
@afeld
Copy link
Contributor

afeld commented Jul 17, 2018

yarn's dependency management was different than what I was expecting

It's A Feature 😉

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants