roots / sage

WordPress starter theme with Laravel Blade components and templates, Tailwind CSS, and a modern development workflow
https://roots.io/sage/
MIT License
12.69k stars 3.06k forks source link

Use modern Yarn install #3152

Closed kevinlisota closed 7 months ago

kevinlisota commented 11 months ago

Summary

I'm no Yarn expert, but the Sage documentation diverges on how to install Yarn. Yarn currently gives this advice. Specifically saying not to use NPM to install Yarn, but rather use Corepack.

In addition, is Sage compatible with Yarn PnP? If so, additional entries are needed in gitignore, because it doesn't store modules in node_modules but rather in the .yarn/ directory. The gitignore entries are outlined here.

Additional context

No response