Skip to content
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

Add browser script option to package.json #1197

Merged
merged 1 commit into from
May 5, 2014

Conversation

sukima
Copy link
Contributor

@sukima sukima commented Apr 23, 2014

This will tell any browserify project to package the browser version of mocha and not the Node version.

Fixes issue #880

This will only cover the JavaScript packaging, CSS is still done manually through <link> tags.

This will tell any browserify project to package the browser version of
mocha and not the Node version.

Fixes issue mochajs#880

This will only cover the JavaScript packaging, CSS is still done
manually through <link> tags.
@jonathanong
Copy link
Contributor

Aside: does browserify not work on the non-browser version of mocha?

@sukima
Copy link
Contributor Author

sukima commented May 5, 2014

@jonathanong: Correct the node version uses some packages that are node specific. The browser version has those features removed. The Sinon project has the same problem.

travisjeffery added a commit that referenced this pull request May 5, 2014
Add browser script option to package.json
@travisjeffery travisjeffery merged commit 72e74e7 into mochajs:master May 5, 2014
@sukima sukima deleted the feature/add-browser-directive branch May 5, 2014 20:48
@ksikka
Copy link

ksikka commented Sep 27, 2015

I'm still unable to browserify a file that require's mocha. Error:

Error: Cannot find module './lib-cov/mocha' from '/Users/ksikka/test_mochify/node_modules/mocha'

Anyone else in the same boat?

Tried it with node 0.10, 0.12, the latest browserify in npm (11.2.0), the latest mocha in npm (2.3.3).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants