Member comments are a way for PRO Members to communicate, interact, and ask questions about a lesson.Commenting Guidelines
Here are some basic guidelines for commenting on egghead.io.Be on-topic
Comments are for discussing a lesson. If you're having a general issue with the website functionality, please contactclick here.Avoid meta-discussion
Is your comment resembles:This was great! This was horrible! I didn't like this because it didn't match my skill level. +1
It will likely be deleted as "meta".Code problem?
Should be accompanied by code! JSFiddle, Plunker, CodePen, etc all provide a way to share code and discuss it in context.Details and Context
Vague question? Vague answer. Any details and context you can provide will lure more interesting answers!
egghead.io comment guidelines
egghead.io 26 minutes ago
It reads from the package.json file, so it should work on any project that's already using npm. It's pretty speedy too. It took about 12 seconds. With npm, it took almost two minutes. It puts its dependencies in Node modules, just like npm, so all your tooling should work the same.
Let's check out the getStatus to see what changed. Yarn added this yarn.lock file. What's that about? The yarn.lock file lists every dependency and the exact version of that dependency that was installed. This is what lets Yarn be reproducible and deterministic.
When Yarn installs from a yarn.lock file, it installs the exact same code everywhere. Let's add this to source control, so that our team can get the same dependencies that we have.
You know what React really needs is Backbone.js. Let's use Yarn to add Backbone, as a dependency, to React. We can do that by typing, "yarn add backbone." Let's check out the getStatus to see what has changed.
You can see that two files were modified, package.json and yarn.lock. Backbone was added as a dependency in package.json. Backbone and Underscore were both added to the yarn.lock file. That's because Backbone depends on Underscore.
Every dependency and all of the dependency's dependencies get added to the yarn.lock file. Let's commit this. Finish React. It's now complete.