What differences between Dependency and DevDependency in package.json

NPM , NodeJS, JavaScript, Logo, Icon

Differences of devDependency and dependency are devDependency we use for just development process , dependency in the other hand will be included or transpired into the minification process Javascript files that were gonna deploy it for our run time application.

devDependency more into tools for make us easy on the development process of our application. For example some of command line tools such as angluar-cli or react-script. Also testing tools like Chai, Mocha, Enzyme.

Dependency will be included or transpiled, meanwhile devDependency is not.

Babel, ESLint is example of devDependency.

React, Redux, Express, and Axios is example of dependency that will be use on run-time.

I mean you don't need to learn that much serious about the differences, it's just tooling stuff, don't think about any of that too seriously, don't lead you into premature optimization. When i started coding i never thought any of that thing, i mean as long as you can start printing the traditional Hello World using that tool, you can just start from that time and building things that matter.


Popular posts from this blog

ERROR 1348 Column Password Is Not Updatable When Updating MySQL Root Password

How To Create Spring Boot Project Using Netbeans

Spring Kafka - How to use ReplyingKafkaTemplate send and reply synchronously