insin / nwb

A toolkit for React, Preact, Inferno & vanilla JS apps, React libraries and other npm modules for the web, with no configuration (until you need it)
Other
5.57k stars 331 forks source link

Use yarn for installing dependencies #204

Open dlindenkreuz opened 7 years ago

dlindenkreuz commented 7 years ago

Since last week, create-react-app uses yarn for installing dependencies. From the release notes of create-react-app:

Yarn is a new fast, reliable and secure alternative to the npm client. If you have Yarn installed, create-react-app will use it to install packages when you create an app. It also creates a yarn.lock file that should be checked into source control (e.g. git). This ensures the same versions of packages will be installed each time yarn install is run, on any machine.

We could all benefit from this!

ntwcklng commented 7 years ago

@insin can i tackle this? I would also refactor the install-app-functions into one generic function and pass the deps via an array. https://github.com/insin/nwb/blob/master/src/utils.js#L73-L98

insin commented 7 years ago

Eep: https://twitter.com/nicdex/status/818606636919095296

mlusetti commented 7 years ago

Sure but all the other stuff it provides makes it a better fit, especially the deterministic way of handling deps.