ng-scrollbar icon indicating copy to clipboard operation
ng-scrollbar copied to clipboard

Using ng-scrollbar from cdnjs

Open derekperkins opened this issue 10 years ago • 3 comments

I'd love to use this off of cdnjs. https://github.com/cdnjs/cdnjs

Do you already deliver to npm? cdnjs has a setting to automatically pull from npm every 4 hours, so after an initial setup, hopefully you can just forget about it. :) Thanks for a great plugin!!

(from cdnjs) Enabling NPM auto update

We automatically update libraries that are also hosted on NPM e.g. Lodash.

This script runs automatically every 4 hours

Update the package.json and configure it as below and submit a pull request. // Lodash package.json // ... "npmName": "lodash", "npmFileMap": [{ "basePath": "/dist/", "files": [ "*" ] }], // ... npmName should map to the name of the library on NPM npmFileMap is a white list of files to take from the NPM tarball and host on the cdn basePath will be ignored when copying over to the cdn files is a pattern matcher that you can select many files with

The above example looks in the tarball whose structure might look like

dist/lodash.js dist/lodash.min.js README It then will look for dist/* which will find the two files inside the dist folder. It will now copy it over to cdnjs but without the dist path. Such that they will end up. ajax/libs/lodash.js/2.0/lodash.js

derekperkins avatar Feb 07 '14 22:02 derekperkins

Hi, Sounds like a great idea, I'll look into it this weekend.

Thanks for the feedback, hope you find this plugin useful :)

On Sat, Feb 8, 2014 at 12:32 AM, Derek Perkins [email protected]:

I'd love to use this off of cdnjs. https://github.com/cdnjs/cdnjs

Do you already deliver to npm? cdnjs has a setting to automatically pull from npm every 4 hours, so after an initial setup, hopefully you can just forget about it. :) Thanks for a great plugin!!

(from cdnjs) Enabling NPM auto update

We automatically update libraries that are also hosted on NPM e.g. Lodash.

This script runs automatically every 4 hours

Update the package.json and configure it as below and submit a pull request. // Lodash package.json // ... "npmName": "lodash", "npmFileMap": [{ "basePath": "/dist/", "files": [ "*" ] }], // ... npmName should map to the name of the library on NPM npmFileMap is a white list of files to take from the NPM tarball and host on the cdn basePath will be ignored when copying over to the cdn files is a pattern matcher that you can select many files with

The above example looks in the tarball whose structure might look like

dist/lodash.js dist/lodash.min.js README It then will look for dist/* which will find the two files inside the dist folder. It will now copy it over to cdnjs but without the dist path. Such that they will end up. ajax/libs/lodash.js/2.0/lodash.js

Reply to this email directly or view it on GitHubhttps://github.com/asafdav/ng-scrollbar/issues/2 .

asafdav avatar Feb 10 '14 10:02 asafdav

Any luck w/ this or jsdelivr?

OutThisLife avatar Jun 24 '14 20:06 OutThisLife

Nope, I read that they require at least 100 stars...

On Tue, Jun 24, 2014 at 11:13 PM, Talasan Nicholson < [email protected]> wrote:

Any luck w/ this or jsdelivr?

— Reply to this email directly or view it on GitHub https://github.com/asafdav/ng-scrollbar/issues/2#issuecomment-47024386.

asafdav avatar Jun 24 '14 20:06 asafdav