-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Peer Dependencies #767
Comments
@eddiemonge yep, you are correct the only reason is so that you can just install karma and it works (it includes karma-jasmine and some other default plugins). Each plugin has a peerDependency on Karma. Maybe we could have |
I'd really love to see this go as well because it wastes quite some time downloading dependencies I don't need in my projects. How about having a separate module, something like It's just an incomplete/opinionated set of dependencies anyway, if you use |
@c089 I can see doing this in 0.12, also |
Peer dependencies should not go from the parent to the children. The children should peer depend on the parent project and not the other way around. Closes karma-runner#767 BREAKING CHANGE: People will need to explicitly install the plugins they need. `karma init` should help with this. Removed plugins that need to be installed explicitly are: * karma-jasmine * karma-requirejs * karma-coffee-preprocessor * karma-html2js-preprocessor * karma-chrome-launcher * karma-firefox-launcher * karma-phantomjs-launcher * karma-script-launcher
Shouldn't the things listed as peerDependencies in the package.json be dependencies? And if Karma doesn't depend on them and they really are optional plugins, shouldn't they have karma listed as a peerDependency and karma not have them listed at all?
Only reason I see to have them listed as PD's in Karma is so they are automatically installed to make it easier for devs to use them. I think this is a bad case and adds a lot of unneeded bloat. I think they better solution would be to document that if you want, say coffeescript support, then youhave to
npm install --save-dev karma-coffee-preprocessor
in your project (or add it globally to run karma standalone).The text was updated successfully, but these errors were encountered: