-
Notifications
You must be signed in to change notification settings - Fork 137
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
Request: Publish to npm #59
Comments
Thanks for the feedback, @jimf :) -- I'll look in to it, but isn't it possible for NPM to specify a github repo as the dependency? :) |
It is. However, you lose the version tracking, i.e., it'd be up to the user to manage the dependency manually, as tools like |
In the meantime, npm is complaining about the
|
any assistance on this would be appreciated 😄 -- I have no experience with NPM packages |
Once you have created an npm account, it should just be a matter of running Also, I believe it's recommended, if not required, for the package.json |
thanks @jimf ... I understand that. I do not have any intention for this to be a exported anonymous module as it is an extension method for jqueryui... Am I right in thinking that NPM modules should always be self-executing functions, and not extensions for other libraries? -- This is the part I require some help/advice on :) I do not want to wrap the extentions in an exported module, as that will make it inaccessible for non-npm/browserify users... or should I have anohter, new file, explicitly for browserify/npm which is wrapped as an exported module, and should it be classified as the "main" file? Thanks for any insight. |
Ah, gotcha. Yeah, I suppose it comes down to how much you want to put into it. FWIW, jQuery officially moved their plugin repository to npm. The npm blog posted a couple of articles (here and here) on making the transition. But yeah, a true CommonJS setup would look a little different. You likely could always use a UMD wrapper though to keep the existing sort of plug-and-play support. |
Excellent, @jimf -- thanks for your help. And thanks for your patience. Simon. |
Yep, that's the article. Thanks @jimf. The last few code snippets in the 2nd npm blog post describe how to handle both browser and CommonJS environments using a simple factory. Module exporting can be useful for things like unit testing or attaching the jQuery plugin manually for more specialized use cases. Thanks for looking into this. |
Glad to help! 🍻 |
I still can't install it via npm. |
+1 would love to have this in NPM |
Hey, anyone who's interested in this being available on NPM, could you please review the changes on the 2nd of Oct, https://github.com/simeydotme/jQuery-ui-Slider-Pips/commits/2.0.0-alpha -- if anyone can test this on browserify/webpack I'd be greatly appreciative... if that works I'll release it as 2.0.0 and push to NPM :) |
edited for milestone tracking
|
https://docs.npmjs.com/getting-started/using-a-package.json#requirements |
How can we get values of the slider to perform some operation based on slider value? |
Would be handy to have this published to npm in addition to bower, since many projects are moving away from bower.
The text was updated successfully, but these errors were encountered: