emakina-cee-oss / react-cli

An easy to use CLI for starting and building React projects in a fast and consistent way.
MIT License
5 stars 0 forks source link

Use NPM instead of Yarn. #1

Closed sladiri closed 7 years ago

flobacher commented 7 years ago

with the new npm5 eusing yarn does not offer such huge advantages anymore. could we maybe use npm as the default packag manager and yarn as an option that you can set via cmd-line param just like --spa ?

dgoerdes commented 7 years ago

yep going with npm as baseline and have yarn as an opt in sounds like a plan to me

sladiri commented 7 years ago

What bugged me about Yarn a bit was, that it does not work completely with NVM. Global yarn packages are not installed separated by the NVM installations. They go to ~/.config/yarn/..., instead of ~/.nvm/.... There is a static setting for this path, but it is an additional thing to keep in mind (ie, change it when you change NVM version).

sladiri commented 7 years ago

I added a --yarn flag like the --spa, but I am not sure how to test this change.

sladiri commented 7 years ago

OK, I tested it with npm link, there was a bug of course. :)