Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 [Refactor] Consider Yarn Berry or pnpm #1075

Open
roschaefer opened this issue Jun 10, 2024 · 0 comments
Open

🔧 [Refactor] Consider Yarn Berry or pnpm #1075

roschaefer opened this issue Jun 10, 2024 · 0 comments
Assignees
Labels

Comments

@roschaefer
Copy link
Contributor

roschaefer commented Jun 10, 2024

🔧 Refactor

I've used yarn berry and made good experiences. I see a number of benefits for this project:

  • Zero installs (optional)
  • Zips node_modules (disk space!)
  • Resolves modules across the entire monorepo (de-duplication!)
  • Run commands across workspaces

There is also pnpm which could be a good fit. But I haven't used it in production myself.

Have a look at this:

$ pwd
/home/robert/Development/dreammall/dreammall.earth
$ dust .
 86M         ┌── pack-f6247c8a7c0d81e5814f68397ca67d333be51355.pack│█████                                                                                                                                                                │   3%
 88M       ┌─┴ pack                                                │█████                                                                                                                                                                │   3%
 88M     ┌─┴ objects                                               │█████                                                                                                                                                                │   3%
 89M   ┌─┴ .git                                                    │█████                                                                                                                                                                │   3%
 91M   ├── node_modules                                            │██████                                                                                                                                                               │   3%
 46M   │   ┌── base                                                │███▒▒░░░░░                                                                                                                                                           │   2%
 79M   │ ┌─┴ database.old                                          │█████░░░░░                                                                                                                                                           │   3%
 49M   │ │ ┌── base                                                │███▒▒░░░░░                                                                                                                                                           │   2%
 82M   │ ├─┴ database                                              │█████░░░░░                                                                                                                                                           │   3%
165M   ├─┴ authentik                                               │██████████                                                                                                                                                           │   6%
 41M   │   ┌── prisma                                              │███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                                                                                                                                              │   1%
 32M   │   │ ┌── engines                                           │██▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                                                                                                                                              │   1%
 42M   │   ├─┴ @prisma                                             │███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░                                                                                                                                              │   1%
397M   │ ┌─┴ node_modules                                          │██████████████████████░                                                                                                                                              │  13%
400M   ├─┴ backend                                                 │███████████████████████                                                                                                                                              │  13%
 32M   │   ┌── vite-plugin-checker                                 │██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   1%
 35M   │   ├── vuetify                                             │██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   1%
 49M   │   ├── @storybook                                          │███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   2%
 47M   │   │   ┌── swc.linux-x64-gnu.node                          │███▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   2%
 47M   │   │ ┌─┴ core-linux-x64-gnu                                │███▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   2%
 59M   │   │ │ ┌── swc.linux-x64-musl.node                         │████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   2%
 59M   │   │ ├─┴ core-linux-x64-musl                               │████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   2%
107M   │   ├─┴ @swc                                                │██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                             │   4%
722M   │ ┌─┴ node_modules                                          │████████████████████████████████████████                                                                                                                             │  24%
725M   ├─┴ admin                                                   │████████████████████████████████████████                                                                                                                             │  24%
 32M   │   ┌── vite-plugin-checker                                 │██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   1%
 35M   │   ├── vuetify                                             │██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   1%
 49M   │   ├── @storybook                                          │███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   2%
 47M   │   │   ┌── swc.linux-x64-gnu.node                          │███▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   2%
 47M   │   │ ┌─┴ core-linux-x64-gnu                                │███▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   2%
 59M   │   │ │ ┌── swc.linux-x64-musl.node                         │████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   2%
 59M   │   │ ├─┴ core-linux-x64-musl                               │████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   2%
107M   │   ├─┴ @swc                                                │██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒░░                                                                                                                            │   4%
706M   │ ┌─┴ node_modules                                          │███████████████████████████████████████░░                                                                                                                            │  24%
732M   ├─┴ presenter                                               │█████████████████████████████████████████                                                                                                                            │  25%
 32M   │   ┌── vite-plugin-checker                                 │██▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   1%
 36M   │   ├── vuetify                                             │███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   1%
 49M   │   ├── @storybook                                          │███▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   2%
 47M   │   │   ┌── swc.linux-x64-gnu.node                          │███▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   2%
 47M   │   │ ┌─┴ core-linux-x64-gnu                                │███▓▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   2%
 59M   │   │ │ ┌── swc.linux-x64-musl.node                         │████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   2%
 59M   │   │ ├─┴ core-linux-x64-musl                               │████▓▓▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   2%
107M   │   ├─┴ @swc                                                │██████▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒▒                                                                                                                          │   4%
764M   │ ┌─┴ node_modules                                          │███████████████████████████████████████████                                                                                                                          │  26%
768M   ├─┴ frontend                                                │███████████████████████████████████████████                                                                                                                          │  26%
2.9G ┌─┴ .                                                         │████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████ │ 100%

3 GB (!) after running npm install in each subdirectory. I think that's way too much.

@roschaefer roschaefer changed the title 🔧 [Refactor] Consider Yarn Berry 🔧 [Refactor] Consider Yarn Berry or pnpm Jun 11, 2024
@mahula mahula self-assigned this Jun 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 🪦 Graveyard
Development

No branches or pull requests

2 participants