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

Publish to npm registry #42

Closed
hiendv opened this issue Jul 20, 2018 · 10 comments
Closed

Publish to npm registry #42

hiendv opened this issue Jul 20, 2018 · 10 comments
Assignees

Comments

@hiendv
Copy link

hiendv commented Jul 20, 2018

https://www.npmjs.com/package/github-buttons

Security holding package
This package name is not currently in use, but was formerly occupied by another package. To avoid malicious use, npm is hanging on to the package name, but loosely, and we'll probably give it to you if you want it.

You may adopt this package by contacting support@npmjs.com and requesting the name.

@hiendv hiendv changed the title Ppackage name is not currently in use Package name is not currently in use Jul 20, 2018
@ntkme
Copy link
Contributor

ntkme commented Jul 20, 2018

See #22. Basically some one posted this package, and I asked for removal.

@ntkme
Copy link
Contributor

ntkme commented Jul 20, 2018

As for the current state of this project, it is ready to be published as npm package.

However, most of the users use it by embedding a script instead of using as module. I haven’t heard much requests to make it available in npm, which is why I haven’t published it.

I can look into reclaiming the package name and publishing it if there is such a demand.

For now it can be installed with the following command if you really want to, but I won’t recommend it:

npm install git+https://github.com/ntkme/github-buttons.git

@hiendv
Copy link
Author

hiendv commented Jul 21, 2018

Understood. Well, for now you have my 👍 for the package name

@gavinr
Copy link

gavinr commented Aug 8, 2018

I'd like to see this as an NPM package so I can more easily use as a module. Consider this a 👍 vote :)

@erquhart
Copy link

erquhart commented Nov 1, 2018

most of the users use it by embedding a script instead of using as module

That's the only way to use it currently, so yeah that stands to reason. Publish it and you'll likely see npm downloads start climbing. Especially because yours is the only button with React/Vue components - React/Vue users pretty much always have a build system and dependency management via npm.

You're the owner so no one else can really do this but you. Would you mind sending an email to support@npmjs.com asking for the name?

@nezdemkovski
Copy link

I want it as npm module as well. Take my 👍, please

@ntkme
Copy link
Contributor

ntkme commented Feb 13, 2019

OK. To really have this as a npm package, I'd like to do some change to the structure to this project first.

Today this project has two parts:

  • The library: buttons.js
  • The application: buttons.github.io

First, I will take them apart and have two separate repo.

Then the library hosted on buttons.github.io has to be versioned, and it might be a little bit more work on that. Otherwise it might break the <iframe> auto-sizing for older browsers that does not support shadow DOM when a stylesheet change happen in the future.

@ntkme ntkme changed the title Package name is not currently in use Publish to npm registry Feb 13, 2019
@ntkme ntkme self-assigned this Feb 13, 2019
@nezdemkovski
Copy link

Hey @ntkme I can help you with that

@ntkme
Copy link
Contributor

ntkme commented Feb 15, 2019

@ntkme ntkme closed this as completed Feb 15, 2019
@ntkme
Copy link
Contributor

ntkme commented Feb 15, 2019

For npm releases, to solve the versioning issue for iframe fallback for old browsers, I decided to use unpkg.com instead of GitHub Pages.

In npm release build (NODE_ENV=production):

  var name = "github-buttons";
  var version = "1.0.0";
  var baseURL = (/^http:/.test(location) ? "http" : "https") + "://" + ("unpkg.com/" + name + "@" + version + "/dist");

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

No branches or pull requests

5 participants