-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Publish to npm
for browserify
support
#197
Comments
👍 |
👍 FYI, there is a fork published to npm, but it's rather out of date: https://www.npmjs.org/package/raven-js @mattrobenolt Any interest in losing the fork and making the main repo CommonJS compatible and publishing releases to npm? |
@christophercliff I'm ok with doing that, I just need someone to hand hold this and support it since I don't use browserify. |
👍 for browserify support |
Any update? Essentially you just have to merge the PR that @clayzermk1 submitted (#261), remove |
Just merged #261. I think there are a few other issues/PR's to address, then I'll cut a release and try to get this onto npm. Anyone here willing to test when I publish? Or want to give me instructions to test on my own? I don't want to break the public package that others depend on. |
This is going to be awkward now having a package called I need to figure out a way to combine these two or something into something that can be used in both places. |
Yeah I agree, it's confusing, it would be nice to figure out a way to combine them! 😃 |
@moretti Thanks. I'm going through my backlog of issues and pull requests today so I'll try and cut a new version this afternoon unless there's a major reason I can't. |
CommonJS 😉. I think it all boils down to whether
I would be more than happy to give it a go! 😄 Testing is easy, |
The simplest way for combining these projects would be to define two different entry points: one for node.js and another one for browsers. This can be done by editing the Have a look, for example, at superagent's package.json: |
This would be lovely. |
For what it's worth, since the opening of this issue I now prefer to always separate <script src="raven-with-init.js"></script>
<script src="index.min.js"></script> |
@mattrobenolt any update on this? All you need to do is This will publish You are already a maintainer of Would be nice if you could publish |
+1 would be great if npm could be updated. We just pushed some code using |
So allow me to explain the problem and why it's not so simple: This module was never intended to be published to npm in the first place. The project was forked and published without our permission. This fork even diverged from master. That's the version 1.1.11 that you see there today, which does not match the 1.1.11 release tagged in this repo. After that confusion, I've acquired ownership of the repository. I'm hesitant to just publish 1.1.16 to npm since I'm not super familiar with this space and how people use npm for client side dependencies. With that said, @dcramer and I are going to get this sorted out soon and fix this so we can move forward with our version and nor a forked version that we don't support. So again, I apologize for the confusion, but I'm trying really hard not to make people more upset by breaking compatibility. |
Understandably. Basically it should be CommonJS (the fork has removed I appreciate not breaking compatibility and measuring twice, cutting once. Good luck, hopefully a contributor can kick in some time if you need it. |
See also #323 |
@dcramer @mattrobenolt I'm currently using Raven.js installed from npm with webpack, so I could chime in with some experiences. I installed Raven.js 1.1.16 directly from GitHub (so I'm not using the fork published in npm, which is outdated). Issues I had to work around:
;(function(window, undefined){
// ...
})(this); Workarounds for using with webpackThese issues are quite easily fix. In the meanwhile, it's already possible to use the current version Raven.js with webpack and npm:
|
1.1.17 was published to npm. I have no idea if this really works, so some confirmation would be great. :) |
Thanks @mattrobenolt |
@mattrobenolt Thank you for publishing this! I just upgraded to it and have had no problems building or running it yet. |
Awesome, good to know. I'll be keeping the npm version up to date now as well. :) |
Works great, thank you. |
* rm -rf udp This has been gone for years
In order to support
browserify
, a JS compiler that resolves dependencies as if they werenpm
dependencies, we should publishraven-js
tonpm
.https://github.com/substack/node-browserify
The changes that we need to make this happen:
package.json
toraven-browser
or similarprivate
property frompackage.json
If you are concerned about the task of adding 2 more tasks when you release (i.e. bumping
package.json
version and runningnpm publish
), then you might want to consider usingfoundry
:https://github.com/twolfson/foundry
The text was updated successfully, but these errors were encountered: