TeamCHK / yubaba

Chrome extension that generates article summaries using NLP
2 stars 0 forks source link

[Chrome Extension] Restructure project #18

Closed sungho-cho closed 2 years ago

sungho-cho commented 2 years ago

This restructure is an effort to not only improve readability and follow React conventions, but also to minimize number of directories that are right under src/. After this PR, there will be only three subdirectories: components/, extension/, static/.

  1. Renamed and reorganized

    • Move src/icons/ to src/static/icons/
    • Move .tsx files to src/components/ (index.tsx, Popup.tsx)
    • Rename src/ts/ to src/extension/
    • Update tsconfig.json to have chrome types (@types/chrome) to resolve TypeScript errors.
    • Update webpack.config.js with the updated paths
  2. Made sure npm run dev runs fine.

My default linter made some automatic lint changes, which are unintentionally included in this PR. If PRs of @junhur and me keep making different lint changes back to back, we could discuss how to synchronize our IDE lint settings.