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

update the latest version on cdnjs #83

Open
kennynaoh opened this issue Aug 31, 2016 · 7 comments
Open

update the latest version on cdnjs #83

kennynaoh opened this issue Aug 31, 2016 · 7 comments

Comments

@kennynaoh
Copy link

Hello @DataTables ,
I am the member of cdnjs project.
We want to update the latest version on cdnjs.
I want to make sure does this project publish on npm?
I saw many similar npm name about this project, like this.
Please help me confirm that what npm should we use if published or I just update it to the latest version by github.
Thanks for your help!

cdnjs/cdnjs#8742

@DataTables
Copy link
Collaborator

DataTables commented Sep 1, 2016

Hi,

Thanks for your question. This is a source repo and isn't really suitable for inclusion on cdnjs. Instead, I would recommend you include my distribution repos:

You could include this repo, but will usually require a compilation step to include a source repo (for example I don't have CSS files in this repo, only SCSS).

The reason there isn't a dist directory in this repo is for npm. Because DataTables and its extensions support multiple styling libraries, to include the required styles without needing to manually enter paths I had to split it into multiple distribution repos (which is a bit of a pain...).

(Edit - Fixed list - there was a duplicate item)

@kennynaoh
Copy link
Author

Sorry for late reply.
So if I want to update the new version of this library(https://cdnjs.cloudflare.com/ajax/libs/datatables-fixedheader/2.1.1/dataTables.fixedHeader.js) on npm.
Could you give me some advices?
Thanks!

@DataTables
Copy link
Collaborator

I'd say that particular version shouldn't really be there at all - datatables.net-fixedheader is the deploy npm package as I mentioned above. Can you alias that package to your datatables-fixedheader one?

@kennynaoh
Copy link
Author

Are they the same library?

@DataTables
Copy link
Collaborator

Yes. As I tried to explain above (perhaps not very well!), the distribution repos are just built versions of this repo, split apart so you can choose which styling framework you want to use with it.

This repo contains the source files that are compiled and separated into the various distribution repos (a core Javascript repo and one for each of the styling frameworks that DataTables supports).

@kennynaoh
Copy link
Author

Because there is exist datatables-fixedheader lib on cdnjs.
And I want to update it to the latest version on npm(if has) and add npm auto-update config.
So you mean if there is new version publish on git repo, and it will also publish on npm here?
I just want to make sure about that.
Thanks for your help!

@DataTables
Copy link
Collaborator

Yes, datatables-fixedheader is this repo. However, while making all of the extensions available with the various styling frameworks I had to split the compiled files into various repos. Rather than storing them both in this repo and the distribution repos, I keep them only in the distribution repo.

Personally I would say that datatables-fixedheader should track this repo - even although it is redundant and doesn't contain the compiled files.

Your users should use datatables.net-fixedheader (and the various styling packages for it) to track the deploy files.

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

No branches or pull requests

1 participant