add shell command to find old components

This commit is contained in:
Johann150 2022-07-24 11:44:47 +02:00 committed by Chloe Kudryavtsev
parent f6b0deb666
commit 228d91f654

View file

@ -143,6 +143,7 @@ Misskey uses Vue(v3) as its front-end framework.
- Use TypeScript.
- When creating a new component, please use the Composition API (with [setup sugar](https://v3.vuejs.org/api/sfc-script-setup.html) and [ref sugar](https://github.com/vuejs/rfcs/discussions/369)) instead of the Options API.
- Some of the existing components are implemented in the Options API, but it is an old implementation. Refactors that migrate those components to the Composition API are also welcome.
You might be able to use this shell command to find components that have not yet been refactored: `find packages/client/src -name '*.vue' | xargs grep '<script' | grep -v 'setup'`
## Notes
### How to resolve conflictions occurred at yarn.lock?