GithubHelp home page GithubHelp logo

cdnjs about bootstra.386 HOT 7 OPEN

kristopolous avatar kristopolous commented on May 29, 2024 2
cdnjs

from bootstra.386.

Comments (7)

fieu avatar fieu commented on May 29, 2024 2

@kristopolous According to jsDelivr:

// load any GitHub release
https://cdn.jsdelivr.net/gh/user/repo@version/file

// load jQuery v3.2.1
https://cdn.jsdelivr.net/gh/jquery/[email protected]/dist/jquery.min.js

// use a version range instead of a specific version
https://cdn.jsdelivr.net/gh/jquery/[email protected]/dist/jquery.min.js
https://cdn.jsdelivr.net/gh/jquery/jquery@3/dist/jquery.min.js

// omit the version completely to get the latest one
// you should NOT use this in production
https://cdn.jsdelivr.net/gh/jquery/jquery/dist/jquery.min.js

// add ".min" to any JS/CSS file to get a minified version
// if one doesn't exist, we'll generate it for you
https://cdn.jsdelivr.net/gh/jquery/[email protected]/src/core.min.js

// add / at the end to get a directory listing
https://cdn.jsdelivr.net/gh/jquery/jquery/

So you could do:

https://cdn.jsdelivr.net/gh/kristopolous/BOOTSTRA.386@bs3-pre2/v3.3.2/dist/css/bootstrap.css

There's also RawGit.

So

https://raw.githubusercontent.com/kristopolous/BOOTSTRA.386/master/v3.3.2/dist/css/bootstrap.css

Turns into:

https://cdn.rawgit.com/kristopolous/BOOTSTRA.386/master/v3.3.2/dist/css/bootstrap.css

from bootstra.386.

fieu avatar fieu commented on May 29, 2024

I highly agree.

from bootstra.386.

kristopolous avatar kristopolous commented on May 29, 2024

Alright sure ... I might as well do this. How does one get their stuff on this? I don't see a signup or upload

from bootstra.386.

extend1994 avatar extend1994 commented on May 29, 2024

Hi everyone! I am a member from cdnjs πŸ˜„
There is a corresponding library request opened by @NurdTurd cdnjs/cdnjs#11775 (Thanks for request! πŸ‘ )
I am afraid that cdnjs will need maintainers/authors to release versions with distribution on git repo, npm or other similar public platform. It currently seems like that only zip files with distribution. In this case, I won't be able to add the lib because it doesn't meet library requirement.

For more details, you can refer
https://github.com/cdnjs/cdnjs/blob/master/CONTRIBUTING.md#a-issue
cdnjs/cdnjs#11970 (comment)
https://github.com/cdnjs/cdnjs/blob/master/documents/autoupdate.md

from bootstra.386.

kristopolous avatar kristopolous commented on May 29, 2024

from bootstra.386.

extend1994 avatar extend1994 commented on May 29, 2024

Sorry for late reply here. πŸ˜“
@kristopolous Sure I can give an example πŸ˜„
This issue yusugomori/csssans#7 asked the author if he can add a tag for versions to let cdnjs be able to fetch the files cdnjs needs automatically (in this case, they are css/js files under src of the project) via a mechanism called "auto-update".

cdnjs hopes to fetch files by setting "auto-update" config. The config needs a project to have a fixed folder for distributions but distinguished by git tags. In your current file structure, distributions are under folders named after versions, which can't be fixed one. If you can use a fixed folder to put files, and add tags for them, it can help us a lot on adding your lib.

from bootstra.386.

nilp0inter avatar nilp0inter commented on May 29, 2024

Anything we can do to move this forward?

from bootstra.386.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.