Skip to content

do not commit generated files to VCS #2615

@boneskull

Description

@boneskull

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 $.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: browserbrowser-specificsemver-majorimplementation requires increase of "major" version number; "breaking changes"type: choregenerally involving deps, tooling, configuration, etc.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions