pacocoursey / cmdk

Fast, unstyled command menu React component.
https://cmdk.paco.me
MIT License
9.42k stars 265 forks source link

[Convention] Refactoring Project structure #78

Closed prestonbourne closed 1 year ago

prestonbourne commented 1 year ago

Is there value in refactoring the src directory into a more standard project structure since it's approaching 1000 lines of code

Something along the lines of

src/
├── types
├── index
├── hooks/
│   ├── types
│   └── useLazyRef
├── store/
│   ├── types
│   ├── index
│   └── contexts
└── constants/
    └── index

I'd be willing to begin breaking this down to smaller tasks and migrating to if there's an interest

pacocoursey commented 1 year ago

Hey Preston, thanks for the offer!

I'd say that's just busy work, though, and doesn't add much value. 1,000 lines is still pretty small. If it grows substantially (🤞 hope not) then we can reconsider.

prestonbourne commented 1 year ago

👍 :) np