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

Issues with Bower dist #113

Open
alexisabril opened this issue May 18, 2015 · 11 comments
Open

Issues with Bower dist #113

alexisabril opened this issue May 18, 2015 · 11 comments
Labels

Comments

@alexisabril
Copy link
Contributor

main target is dist/funcunit.js, which is missing the browser folder within dist. CJS & AMD version are also missing this folder.

@matthewp
Copy link
Contributor

main should be pointing to the global, is it not?

@alexisabril
Copy link
Contributor Author

It does actually, I'm tracking down the actual cause. Just putting a bug note here before I forget.

@matthewp
Copy link
Contributor

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?

@matthewp
Copy link
Contributor

Just tried it and you are right... very bizarre, should be there, it's in the tag.

@alexisabril
Copy link
Contributor Author

we ignore "browser" instead of "/browser" in the bower.json, however I haven't debugged why the main dist isn't working.

@alexisabril
Copy link
Contributor Author

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.

@matthewp
Copy link
Contributor

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/

@matthewp
Copy link
Contributor

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.

@alexisabril
Copy link
Contributor Author

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.

@matthewp
Copy link
Contributor

It's not built into the global. It expects you to put jquery in a <script> before the FuncUnit <script>

@alexisabril
Copy link
Contributor Author

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.

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

No branches or pull requests

3 participants