Giter Site home page Giter Site logo

Comments (6)

Popotojs avatar Popotojs commented on May 31, 2024 1

I chose the easy solution to store the dependencies dist in repo and reference them locally to avoid new version breakage.

This solution works well on gh-pages and locally

from popoto-examples.

Popotojs avatar Popotojs commented on May 31, 2024

It looks like an issue with unpkg file resolution.
https://unpkg.com/popoto is supposed to resolve to https://unpkg.com/popoto@latest/dist/popoto.min.js
using "unpkg" deafult parameter from package.json but it seems it's no more the case.

I'll see what I can do to improve this.

from popoto-examples.

Popotojs avatar Popotojs commented on May 31, 2024

mjackson/unpkg/issues/156

I'm looking if I should change the dependencies references in project to avoid this kind of issue.

from popoto-examples.

NicksonYap avatar NicksonYap commented on May 31, 2024

Why don't we use webpack and "npm install" the package?

from popoto-examples.

Popotojs avatar Popotojs commented on May 31, 2024

I want the examples to be hosted directly in GitHub Pages of the project.

As they are statics HTML and JavaScript I just had to turn on the feature on the master branch and every examples can be tested directly with its live url.
example: https://nhogs.github.io/popoto-examples/simple-graph/index.html

Using services like unpkg or jsDelivr is an easy way to always references latest version of dependencies on client side.

One possibility would be to host dependencies in the project but trigger a new build on every new releases of a dependency. It is more complex to setup.

But you are right that I can create a NPM package of this project in order to run it locally.
Would it be useful for you?

from popoto-examples.

NicksonYap avatar NicksonYap commented on May 31, 2024

from popoto-examples.

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.