-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
When we added Bower support long ago (#584), it was implemented by committing the bundle (the root mocha.js) to VCS.
This, of course, is bad practice.
I have no numbers anywhere on how many people install Bower via Mocha, but it's probably enough to cause pain if we stop supporting it.
Instead, we can create a script that dumps the dist file(s) into another repository, a la AngularJS. The dist file(s) would still be published to npm.
Practically speaking, whenever anybody runs the browser-based tests via Karma, we generate a new bundle so that karma-mocha uses Mocha to test itself. That's inconvenient for contributors and causes confusion.
An alternative or supporting solution is to consume unpkg in some way. I'm a little hesitant to depend on this service. It's open-source, so we could run our own server, but $.