-
Notifications
You must be signed in to change notification settings - Fork 378
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
Issues with Bower dist #113
Comments
main should be pointing to the global, is it not? |
It does actually, I'm tracking down the actual cause. Just putting a bug note here before I forget. |
Here's the browser folder in the commonjs build: https://github.com/bitovi/funcunit/tree/v3.0.0/dist/cjs It does have browser, same for the amd. But it's not showing up in bower? |
Just tried it and you are right... very bizarre, should be there, it's in the tag. |
we ignore "browser" instead of "/browser" in the bower.json, however I haven't debugged why the main dist isn't working. |
Note: jQuery shouldn't be a dependency. Maybe we shouldn't distribute the non-global version via bower at all(which would remove the syn dep as well). Reason is: bower doesn't handle nested dependencies, so the version of jQuery will most likely always conflict with the version the app being tested needs. |
jQuery is definitely a dependency, FuncUnit doesn't work without it. The user can override our version using resolutions: http://jaketrent.com/post/bower-resolutions/ |
We should probably provide a way for the user to pass in their own jQuery and we create a "new funcunit" based off of that. |
Correct, however jQuery 1.11.x should be built into the dist/funcunit.js in noConflict mode. This would allow you to test an app that uses jQuery or any $ lib of any version, independent of the testing framework. |
It's not built into the global. It expects you to put jquery in a |
Just noting for this issue: FuncUnit does build jQuery 1.11.x into the global: https://github.com/bitovi/funcunit/blob/master/dist/funcunit.js#L2430 We only expected jQuery to be added separately in v2.0, which was actually my personal mistake. In v2.1.0-pre, this was corrected. |
main
target isdist/funcunit.js
, which is missing thebrowser
folder withindist
. CJS & AMD version are also missing this folder.The text was updated successfully, but these errors were encountered: