-
Notifications
You must be signed in to change notification settings - Fork 265
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
Comments
See #22. Basically some one posted this package, and I asked for removal. |
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 |
Understood. Well, for now you have my 👍 for the package name |
I'd like to see this as an NPM package so I can more easily use as a module. Consider this a 👍 vote :) |
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? |
I want it as npm module as well. Take my 👍, please |
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:
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. |
Hey @ntkme I can help you with that |
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 ( var name = "github-buttons";
var version = "1.0.0";
var baseURL = (/^http:/.test(location) ? "http" : "https") + "://" + ("unpkg.com/" + name + "@" + version + "/dist"); |
https://www.npmjs.com/package/github-buttons
The text was updated successfully, but these errors were encountered: