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

Browserify adapter #87

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Browserify adapter #87

wants to merge 1 commit into from

Conversation

mweibel
Copy link

@mweibel mweibel commented Oct 30, 2013

Use it as follows:

var Opentip = require('path/to/lib/opentip');
var jQuery = require('path/to/jquery/shim');

require('path/to/lib/adapter-browserify')(Opentip, jQuery);
// jquery shim
require('path/to/jquery');
module.exports = $;

Basicly this adapter could also be used for component.js.
But as I don't know how you would
like to have it, I just created this as well.

Tests are not working with it as I didn't figure
out how the test for the component.js adapter works.
Could you please point me into the right direction?

  • Michael

Use it as follows:

```javascript
var Opentip = require('path/to/lib/opentip');
// jQuery shim can be done as follows:
// require('path/to/jquery');
// module.exports = $;
var jQuery = require('path/to/jquery/shim');

require('path/to/lib/adapter-browserify')(Opentip, jQuery);
```

Basicly this adapter could also be used for component.js etc.
But as I don't know how the original developer would
like to have it, I just created this as well.

Tests are not working with it as I didn't figure
out how the test for the component.js adapter works.
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.

1 participant