-
Notifications
You must be signed in to change notification settings - Fork 508
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 version 1.0.4 to NPM #423
Comments
I'm sorry but we don't support npm and we don't want to support. Wasn't the Rails team that published the package there so it would be great if you ask to who did it |
No problem, makes sense. /cc @callumacrae |
Sorry about that, the developers of jquery-ujs are too lazy to support npm. For reference, my shell history for the last thirty seconds:
Literally thirty seconds. You wouldn't even have to do the first three steps. Come on, guys. I don't want to do this. |
@rafaelfranca Is there anyway we can make this happen? We are working on a react webpack project within rails, https://github.com/shakacode/react_rails_server_rendering, and we need this on npm to keep all the assets in one place while still being able to leverage turbolinks. I understand your reasoning though for why you haven't supported up until now. |
@callumacrae My team needs this (https://github.com/shakacode/). If you can transfer the npm to us, we'll maintain this. @rafaelfranca We're happy to help. I just wrote about the options here: http://forum.railsonmaui.com/t/considerations-for-jquery-with-rails-and-webpack/344 |
Sure! What's your npm username? Note that I've been pushing from my fork, which includes the package.json from #380: https://github.com/callumacrae/jquery-ujs |
@callumacrae I just setup username "shakacode". We'll probably setup a fork off of your fork. Thanks so much. Please see the comment I posted to #380. |
I've added you:
|
Thanks. Any need right now to publish a new version? Any way to get notified of when I need to do so? |
1.1.0 was released the other day which needs publishing to npm. There isn't really any easy way to get notifications short of watching this repo, which could be noisy. |
Version 1.1.0 is published: https://www.npmjs.com/package/jquery-ujs. Note, after publishing, I tried to change the readme. Sadly, you have to change the version number to update the readme. Thus the version on npm right now is I documented this here, copied below:
|
@callumacrae Looks like we need to update to 1.2.0. @rafaelfranca How can @callumacrae and I be notified when you release new versions? FWIW, we had 21,000 downloads last month: https://www.npmjs.com/package/jquery-ujs |
Woah, that's actually a pretty serious number of downloads. I've published 1.2.0. I pulled from the shakacode fork, merged in master from this repo, and then updated the package.json. I've pushed to my fork because I don't have push access to the shakacode fork: https://github.com/callumacrae/jquery-ujs Note to jquery-ujs maintainers: you could have done this by running just |
…ebpack stack; removed jquery and jquery-ujs from the Rails stack; strongly inspired by rails/jquery-ujs#423 and by http://forum.shakacode.com/t/considerations-for-jquery-with-rails-and-webpack/344
Turbolinks is going on npm: |
Cool! |
@rafaelfranca, @callumacrae and I would love to hand over the keys to the npmjs. 😉 for jquery-ujs. |
@sstephenson told me that he's too busy to take this one on. |
same here |
@rafaelfranca can you please notify either me or @callumacrae when you push a new release. We'd like to promptly update after you release. |
notifying is still more work for us. I think you can use IFTTT https://ifttt.com/recipes/221968-email-me-when-a-github-repo-has-a-new-release |
@rafaelfranca do you have a release script? Maybe that's something we can put in a PR, and then you just run the script. We have one worked out for React on Rails: https://github.com/shakacode/react_on_rails/blob/master/rakelib%2Frelease.rake We can leverage that work.
and that will publish both to NPM and RubyGems |
That doesn't work. To release to RubyGems is a completely different project. Again, I don't want to maintain something that is not officially supported. I agree with turbolinks being published with npm because it can be used in any web project but jquery-ujs is a Rails project. |
@rafaelfranca How do you currently publish? If we wrote you a single command to run that publishes to both rubygems and npm, would that be more work? CC: @callumacrae |
Really sorry but I don't want to do this. I already gave all my reasons and On Fri, Feb 5, 2016, 04:07 Justin Gordon [email protected] wrote:
|
Comparing the stats on RubyGems and npm, about 10% of jquery-ujs downloads come from from npm. You care so little about this project that you're willing to let a third party with no vested interest in the project maintain a major release stream to save two seconds typing? That's nuts. How long are you going to wait? 20%? 50%? 80%? There's a reason we keep bringing it up. npm is growing as a release stream for jquery-ujs, and we don't want the responsibility of maintaining it. |
I'll say this again. I don't use and I don't plan to use npm. I don't want to maintain something that I don't use and I think have rights to do so. This is open source project, I'm not your employee. If you don't want to responsibility of maintaining it, neither do I. If one day I start to use npm I'll try to maintain it but it is not the case yet. I care about this project for the Ruby on Rails perspective and usage and that is all. I'll continue to work in this project and fix other people problems with their usage with the Ruby on Rails blesed workflow because that is what I want to do. |
@callumacrae given that yesterday was Time to Talk Day in the UK and the acknowledged problems with mental health in the wider programming community please refrain from using language like 'insane' when describing the actions of another person within the community as it's against our code of conduct. I'm sure you meant nothing by the comment but please keep discussions civil and respectful. |
It's worth noting that this project supports bower. If you google "npm vs. bower": It's pretty clear that NPM has won. https://www.quora.com/Why-use-Bower-when-there-is-npm Another example is that @dhh and @sstephenson will put put turbolinks on npm. In any case, @callumacrae and my team at @shakacode (http://www.shakacode.com/) are more than happy to keep supporting jquery-ujs on npm. |
Justin, I'm happy to see all the Rails JS on NPM. Our bottleneck has been having someone to do the work. If you and your team wants to do it, then by all means! Let's make it happen.
|
@dhh Any way that we can have all releases come from the same repo? There's a very number of tiny changes to make to this repo to make it happen. We could also add a single release script to have just one command to update both RubyGems and NPM. In any case, I'm happy to help out where I can. Incidentally, we're getting great positive feedback on using webpack to package up npm JS for use in Rails on https://github.com/shakacode/react_on_rails. I go cover the objectives here: https://medium.com/@railsonmaui/the-react-on-rails-doctrine-3c59a778c724#.gs653wcfk. |
Justin, I'd prefer not to make the NPM push yet another thing that Rails We're talking about dropping jquery-ujs in future versions anyway and go On Mon, Feb 8, 2016 at 11:05 PM, Justin Gordon [email protected]
|
@dhh: Ooh, that sounds interesting. Is that discussion happening publicly? It's something I'd be interested in contributing to (not using jQuery is kind of my thing). |
Callum, so far it's just a thought. Vanilla JS has improved enough that the On Tue, Feb 9, 2016 at 12:57 PM, Callum Macrae [email protected]
|
Seems like someone has already taken on the challenge of a vanilla UJS. It's also on NPM. |
@justin808 @callumacrae can you give me access to the npm package? I'll make it officially part of the release process. We have the actioncable precedent and we are using npm internally in Shopify too, so the situation changed. |
@rafaelfranca Done for the github repo. I need an ID on npmjs.com. |
my id on npmjs.com is rafaelfranca |
Awesome. Thank you! |
I'm replacing sprockets with webpack in my app and need to install this as a package. The currently published version is 1.0.2 (which works) but I'd love to be able to get the latest version. Could we get 1.0.4 published to npm?
The text was updated successfully, but these errors were encountered: