Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Aakash Srivastava5,415 Points
I didn't get the point of dev dependencies and production dependencies which explained from 10:54 to 11:51 .
Any help would be much appreciated.
Jennifer NordellTreehouse Teacher
Hi there, Sunny Srivastava ! As Andrew points out in the video, we as developers sometimes need tools to help us develop our app that are not exactly critical to our app being able to run/execute. He uses the example of testing suites. These are used when we (the developers) are testing our code. But those tests don't need to be in our production app. The end user (who may know nothing at all about programming) definitely doesn't need to know exactly how we're testing our app.
Here's a fairly concrete example and a pretty simple one. I use VSCode when programming. There are lots of files and extensions that you can get to help you code. I use one for ES linting. This helps me detect potential problems with my code and even spacing/indentation inconsistencies so that my code has consistent styling. But the style of my code is of zero importance to end users. In fact, my JS is all likely to be minimized to reduce whitespace by the time the end user gets it. Therefore, I really don't need the configuration file for that linting module in there as a dependency for the end product. I only need it for my personal use. It is a "dev" dependency. One that is used by the developer, but not by the end user.
Hope that clarifies things!