alienlebarge / stylelint-config

My own stylelint configurations.
MIT License
4 stars 0 forks source link

Dependencies #12

Closed alienlebarge closed 8 years ago

alienlebarge commented 8 years ago

See what the difference between devDependencies and peerDependencies. Use only what we need.

alienlebarge commented 8 years ago

Why is Grunt specified under peerDependencies and devDependencies in package.json? I was under the impression that only one was necessary, in this case probably peer.

devDependencies will install when you run npm install from the project folder but not when a user installs the module. peerDependencies will only display an error if you try installing a plugin with an incompatible version of grunt. If grunt was only listed under peerDependencies it wouldn't get installed when we do npm install to test and develop on.

http://blog.nodejs.org/2013/02/07/peer-dependencies/

https://github.com/gruntjs/grunt-contrib-compass/issues/85