-
Notifications
You must be signed in to change notification settings - Fork 579
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
NPM module #177
Comments
+1 |
https://github.com/christophior/jquery-daterangepicker-NPM Using it with webpack and all that's really necessary is adding it to your module loaders along with moment and jquery as a loader and you're all set! |
You should add momentjs and jquery as package dependencies, so they get automatically installed |
if someone can provide a PR for this? |
@apertureless i'm guessing that the added dependencies are to my repo which is used for the npm module. If no one makes the PR later on today then i'll add the changes in myself. Also I have a fork of this plugin that has some changes that I might try to merge with the current version and PR back into this repo just to try and keep things in sync and not diverge. Most of the changes are just exposing different parts of the API and adding some stuff to handle the hovering states so we could add some more customization when hovering. Quick question to anyone using the NPM module, how exactly are you using it? Just trying to get some insight. The project that I'm using it on makes use of webpack where we just have a loader that's loading it up as follows
|
Since we have package.json in repo now. It should not be hard to publish on npm; just few commands from terminal Quick start: Full length tut: |
I think @longbill should register this, as author of the library |
Yes, only he can.
|
Bumping, because npm install with git repos doesn't work great if added as a dependency. It would be awesome if @longbill would publish it to npm! Especially that nowadays using module bundlers is the default. edit: @holtkamp, I'm seeing somebody has published it on npm! https://www.npmjs.com/package/jquery-date-range-picker |
Any updates on how to use it as with Webpack? For me it's just not loading: $(...).dateRangePicker is not a function with no other error. |
The plugin was published to NPM by a 3rd-party and was no longer maintained. We have regained ownership of the NPM package name and we will have a proper version published soon. Since this issue seems to be one of the earliest ones related to NPM publishing, I will keep posting updates here and close it when we have the proper NPM package set up. |
I tried to install the latest version of the plugin with
In dd79b09 @monovertex bumped node version to |
@Hirurg103 I think the previous specified version was not even with the correct syntax, because it specified an absolute version, and might have been ignored. When I tried to install the dependencies on my machine with node 14, it failed, so this is why I bumped it. However, this does not really matter when consuming the module as a dependency. I'll see if I can specify the node version only for development and leave it free for production, this way you'll be able to use it without running into that issue. I'll be back shortly with an update. |
@Hirurg103, please check out if it works now. I updated the requirement to allow anything above |
@monovertex I was able to successfully install version Do you plan to publish the new version to NPM? I noticed that the version history of the NPM package is different from the release history in Github. Won't it cause problems with publishing new versions of the package that match Github release versions? |
I plan to publish it to NPM relatively soon. It will cause issues, so I'll have to bump the version to 2.X.X. Along with this update I plan to clean up the dependencies and the build setup a bit. |
I was wondering if there was an NPM module for this project. Thanks
The text was updated successfully, but these errors were encountered: