Git Product home page Git Product logo

Comments (17)

developit avatar developit commented on June 19, 2024 5

Perhaps we could skirt around having to commit dist/ to git by simply linking to the unpkg.com release in each tag/release?

from mitt.

raed667 avatar raed667 commented on June 19, 2024 3

A developer comes across the repository and wants to test the library without having to install 42MB of dependencies ?

from mitt.

dotproto avatar dotproto commented on June 19, 2024 1

I totally agree that built assets should be included in the release zip. As for in the repo, are there many other projects that include the built assets in the repository? That feels like an anti-pattern to me, but I'm just one random developer πŸ˜„

from mitt.

raed667 avatar raed667 commented on June 19, 2024 1

A dist folder would make life a lot easier for many people.

from mitt.

developit avatar developit commented on June 19, 2024 1

I'm fine if someone wants to, though I'm actually not sure how useful it would be to load this library over a CDN. It's not a UMD module by default (though there is a .umd.js version in dist/..) so loading it via requirejs or similar would be quite painful. For me, I see no difference between referencing unpkg.com/mitt / unpkg.com/mitt/dist/mitt.umd.js or JSDelivr's URL, except that unpkg.com is completely automated on top of npm (requires no extra work, respects semver).

from mitt.

XhmikosR avatar XhmikosR commented on June 19, 2024

It's a personal preference regarding the repo :)

Any or both of the solutions would be much better than nothing :P

from mitt.

developit avatar developit commented on June 19, 2024

I never include dist files in Git. I don't mind trying to force-add them for the tags, as long as it's not too much work. This is an npm module, so you can always access them using npm's tarball URL (seen here) or unpkg.com/mitt/.

from mitt.

XhmikosR avatar XhmikosR commented on June 19, 2024

Hmm, the reason I brought this up is https://github.com/developit/mitt/releases

Sure, I can have it as a dep, but this could be handy too.

from mitt.

developit avatar developit commented on June 19, 2024

Agreed! I think I can force-add them in the release script.

from mitt.

XhmikosR avatar XhmikosR commented on June 19, 2024

Is that even possible? To have the dist files in tag.

from mitt.

developit avatar developit commented on June 19, 2024

not in a nice way

from mitt.

XhmikosR avatar XhmikosR commented on June 19, 2024

So the only solution is committing the dist files and updating them with every release. Personally, I'm not aware of another solution.

from mitt.

developit avatar developit commented on June 19, 2024

Ah, if that's the only way then I don't think it's worth it. Just like I don't publish anything to bower, I don't really want people relying on Github to install things.

from mitt.

developit avatar developit commented on June 19, 2024

Do you have a concrete use-case I can understand?

from mitt.

developit avatar developit commented on June 19, 2024

Installing this library doesn't require any other dependencies. There are only devDependencies, which are not installed when running npm install mitt. The entire source is already in the npm package, you can see it here: https://unpkg.com/mitt/

from mitt.

wooorm avatar wooorm commented on June 19, 2024

πŸ‘‹

I use Travis to publish distribution builds to GH releases (and also to publish to npm), which looks, for example, like this. Maybe that’s something you’d want to have?

from mitt.

sospedra avatar sospedra commented on June 19, 2024

Mayber add the project to jsdelivr? https://github.com/jsdelivr/jsdelivr/blob/master/CONTRIBUTING.md

from mitt.

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.