TouchDesigner / WebRTC-Remote-Panel-Web-Demo

A simple React project that can receive a WebRTC video stream from TouchDesigner and send back mouse and keyboard events.
Other
23 stars 3 forks source link

List and remove dead code using the **unimported** tool #6

Closed renaudfv closed 2 years ago

renaudfv commented 2 years ago

https://github.com/smeijer/unimported

     summary               unimported v1.22.0 (node)
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────       entry file          : src/index.js

       unresolved imports  : 0
       unused dependencies : 7
       unimported files    : 2

─────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────     │ 7 unused dependencies
─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────   1 │ @mui/icons-material
   2 │ @testing-library/jest-dom
   3 │ @testing-library/react
   4 │ @testing-library/user-event
   5 │ express
   6 │ react-scripts
   7 │ webrtc-adapter
─────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

─────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────     │ 2 unimported files
─────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────   1 │ src/adapter.js
   2 │ src/setupTests.js
─────┴─────────────────────
renaudfv commented 2 years ago

npx will complain about react-scripts since it's only used in the package.json file through the scripts section. We have to leave it otherwise we can't start or build the app.