Keypress icon indicating copy to clipboard operation
Keypress copied to clipboard

Publish to npm

Open kbjr opened this issue 11 years ago • 29 comments

Can we get this up on npm?

kbjr avatar Feb 04 '15 00:02 kbjr

:+1:

gbmoretti avatar Feb 05 '15 01:02 gbmoretti

Yes, this would be extremely beneficial

browniefed avatar Feb 05 '15 16:02 browniefed

Will do. Out of curiosity, how exactly do you all plan on using this w/ Node?

dmauro avatar Feb 05 '15 18:02 dmauro

@dmauro just using NPM as a dependency manager, and then webpack to bundle everything (or browserify)

browniefed avatar Feb 05 '15 18:02 browniefed

Yes plz. Working on an atom-shell app, so I like to manage all my deps with NPM, as atom-shell lets us just require modules from node_modules just as if it were true node (even on the client). I also use npm with webpack/browserify for static websites, just to avoid having both npm AND bower (deps becomes client deps, at that point).

maxkorp avatar Mar 19 '15 16:03 maxkorp

As a note, it appears @kbjr has already done this (https://github.com/UmbraEngineering/keypress-npm) but it would still be nice to have this straight from the source.

maxkorp avatar Mar 19 '15 16:03 maxkorp

Sorry I've dropped the ball on this. Been very busy at work lately. I'll see if I can manage it this weekend.

dmauro avatar Mar 20 '15 14:03 dmauro

Any news on this? Any other library you recommend?

derhuerst avatar Sep 10 '15 19:09 derhuerst

Sorry I pushed an update and forgot I wanted to sneak this into that update. Will try to find some time soon to make another release for this. Thanks for keeping on top of me about it.

dmauro avatar Sep 14 '15 20:09 dmauro

+1

dev-tim avatar Jun 24 '16 11:06 dev-tim

+1 if you dont mind i can publish it for you? it literally takes two seconds but would be amazing to have it up there

th3fallen avatar Jul 27 '16 13:07 th3fallen

+1

I plan to use it in an Electron app, and npm is the only package manager I would like to keep

bortexz avatar Jul 30 '16 13:07 bortexz

Yeah sorry, I was trying to get this working and ran into a bug with npm. I'll give this another shot.

dmauro avatar Aug 02 '16 17:08 dmauro

Any word on this? I was hoping to use this library in a project, but I can only include new dependencies that are retrievable via npm

dhensche avatar Nov 16 '16 15:11 dhensche

I think I need to clean out old JS/NPM cruft on my machine or something. @th3fallen you mentioned you wouldn't mind handling it? I could really use the help. I need to take a minute to put a call for help on the main page too. I'm just not able to give this project the attention it needs anymore.

dmauro avatar Nov 29 '16 18:11 dmauro

@dmauro yeah no worries i'll publish it now, and add you as an owner of it. if you need anything feel free to ask i'll lend a hand.

th3fallen avatar Nov 29 '16 18:11 th3fallen

Actually @dmauro looks like @kbjr has already published a fork under the name keypress.js since there is already a package published named keypress if you could rename your package name in package.json to match keypress.js and we could sweet talk @kbjr to remove his listing we could publish this under that name.

or could always scope it so it'd appear as @dmauro/keypress when anyone wanted to install it

th3fallen avatar Nov 29 '16 18:11 th3fallen

That's fine with me. Let me know if you plan to move forward, and I'll take it down when you're ready to put yours up.

kbjr avatar Nov 29 '16 19:11 kbjr

@kbjr i'll submit a Pr here to update the package name now and ping you when it gets merged and we'll be good

th3fallen avatar Nov 29 '16 19:11 th3fallen

Need to be updated

hustcer avatar Nov 30 '16 07:11 hustcer

@kbjr got the package updated you can drop your's whenever you have a moment.

th3fallen avatar Nov 30 '16 15:11 th3fallen

seems that npm's new policy prevents me from unpublishing, i'm going to contact them now.

http://blog.npmjs.org/post/141905368000/changes-to-npms-unpublish-policy

kbjr avatar Nov 30 '16 15:11 kbjr

@kbjr yeah no worries.

th3fallen avatar Nov 30 '16 15:11 th3fallen

Okay, email sent.

kbjr avatar Nov 30 '16 15:11 kbjr

Just got a reply back

Based on recent changes to the unpublish policy, the keypress.js package doesn’t appear to be one that we would unpublish. I can, however, transfer the package to the @npm user account, deprecate it and publish a deprecation placeholder. That would remove it from your profile, alert users that it’s no longer supported, and change the output of npm owner ls keypress.js to be npm [email protected].

Alternatively, I could just transfer ownership of the package over to @th3fallen user account. They could then publish an update as needed.

I've told them to transfer ownership over to you. You should be able to publish a new version then.

kbjr avatar Nov 30 '16 18:11 kbjr

Thanks for the co-operation @kbjr https://www.npmjs.com/package/keypress.js is now this repo, i've added @dmauro as a collaborator as well. we should be good to go.

th3fallen avatar Nov 30 '16 19:11 th3fallen

whenever you get your npm stuff sorted out let me know and i'll transfer ownership to you @dmauro

th3fallen avatar Nov 30 '16 19:11 th3fallen

import Keypress from 'keypress.js'; in es6 not work. It works before. There should be a keypress.js file in the root directory

hustcer avatar Dec 01 '16 00:12 hustcer

@hustcer Yes. Either that or "main": "keypress.js" in package.json needs to change to "main": "keypress-2.1.4.min.js" or similar...

kmarwood avatar Mar 12 '17 08:03 kmarwood