Giter Site home page Giter Site logo

CDN about amazium HOT 4 CLOSED

owlystuff avatar owlystuff commented on June 12, 2024
CDN

from amazium.

Comments (4)

hobnob avatar hobnob commented on June 12, 2024 3

As stated on the unpkg website @diomed:

unpkg is a fast, global content delivery network for everything on npm

(emphasis mine)

This means that Amazium is automatically included by this CDN, because we already use a dist folder.

As @catchamonkey stated it is our preference that you have assets stored with your library in case the CDN experiences issue.

However, if you don't wish to do this I have taken the liberty of searching for Amazium on Unpkg for you, and it can be found here:
https://unpkg.com/amazium/dist/amazium.css

Hope this helps :)

from amazium.

catchamonkey avatar catchamonkey commented on June 12, 2024

Happy to receive a PR to look over, but generally i'm not in favour of using CDN's.

Prefer to have assets available with the app, otherwise, if the CDN has problems (yeah it does happen...) then your site has problems that are easily avoidable.

from amazium.

diomed avatar diomed commented on June 12, 2024

but only owner can do this & it's simple:

All you need to do is include your UMD build in your npm package (not your repo, that's different!).

You can do this easily using the following setup:

Add the umd (or dist) directory to your .gitignore file
Add the umd directory to your files array in package.json
Use a build script to generate your UMD build in the umd directory when you publish
That's it! Now when you npm publish you'll have a version available on unpkg as well.

from amazium.

catchamonkey avatar catchamonkey commented on June 12, 2024

We publish to npm using a travis release which is configured in the repo.
So anything to do with that can be configured in the repo via a PR :)

We don't publish manually, it's all automated to keep things simple, consistent and reproducible.

from amazium.

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.