codeforcauseorg / archive.codeforcause.org

https://sandbox.codeforcause.org
Mozilla Public License 2.0
44 stars 79 forks source link

Removing all the unused dependencies (#152) #196

Closed Itsaadarsh closed 3 years ago

Itsaadarsh commented 3 years ago

I just removed all the unused dependencies in this repository there were around 30-40 unused dependencies altogether. After removing all the unused dependencies I also updated the package-lock.json with sync to the package.json dependencies.

I tried removing all the unused react dependencies but the dependency tree issues kept popping so I didn't remove React dependencies.

Then I also ran npm run format before sending this pull request.

Abhishek-kumar09 commented 3 years ago

How you got around the thing that these depencencies are not in use?

Itsaadarsh commented 3 years ago

How you got around the thing that these depencencies are not in use?

Well, VSCode has a powerful searching feature using ctrl + shift + f you can easily find whatever you want in that folder so I used package.json as my base and started finding whether the dependencies were in use or not. This is how I resolved this issue and then finally is checked if something broke in the process but nothing did.

Abhishek-kumar09 commented 3 years ago

Well, VSCode has a powerful searching feature using ctrl + shift + f you can easily find whatever you want in that folder so I used package.json as my base and started finding whether the dependencies were in use or not.

Good hack, thanks for telling :) It will be useful.