asafdav / ng-scrollbar

A custom scrollbar written in pure AngularJS
MIT License
187 stars 70 forks source link

Using ng-scrollbar from cdnjs #2

Open derekperkins opened 10 years ago

derekperkins commented 10 years ago

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

asafdav commented 10 years ago

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 notifications@github.comwrote:

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 .

OutThisLife commented 10 years ago

Any luck w/ this or jsdelivr?

asafdav commented 10 years ago

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

On Tue, Jun 24, 2014 at 11:13 PM, Talasan Nicholson < notifications@github.com> 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.