Git Product home page Git Product logo

Comments (10)

fregante avatar fregante commented on May 23, 2024 1

or acutely, do you mind to move this pacakge into our shiny mono repo

That would make it less discoverable. github-injection is not related to OctoLinker in any way (other than being from the same developers). If you move it in there it's essentially gone for me.

Just go ahead with package.json

The JS file has a check for exports, meaning that it supports globals when loading it directly in the browser. Adding a require would kill that.

from injection.

josephfrazier avatar josephfrazier commented on May 23, 2024 1

Hmm, I'm still undecided, so I think we should just leave it in this repo for now.

Either that or we just assume that these days most project are using a bundler anyway. Maybe a bit harsh, I'm undecided.

I'm personally ok with this. Worst case, someone complains and we can add a build process then.

I think it's acceptable to drop bower support these days

I also agree with this, it's not worth supporting bower.

from injection.

stefanbuck avatar stefanbuck commented on May 23, 2024

That's a good idea! Would you like to create a PR for this?

from injection.

fregante avatar fregante commented on May 23, 2024

How do you handle dependencies? Inline dom-loaded?

from injection.

stefanbuck avatar stefanbuck commented on May 23, 2024

Just go ahead with package.json and ignore bower. I think it's acceptable to drop bower support these days

from injection.

stefanbuck avatar stefanbuck commented on May 23, 2024

or acutely, do you mind to move this pacakge into our shiny monorepo https://github.com/OctoLinker/OctoLinker/tree/master/packages? Should be an easy task.

from injection.

josephfrazier avatar josephfrazier commented on May 23, 2024

That would make it less discoverable. github-injection is not related to OctoLinker in any way (other than being from the same developers). If you move it in there it's essentially gone for me.

Good point, if we're going to move this into the monorepo (which would make octolinker development a little easier), we should start publishing those packages.

The JS file has a check for exports, meaning that it supports globals when loading it directly in the browser. Adding a require would kill that.

If we want to preserve this use case, we could add a build process and publish bundled code.

from injection.

stefanbuck avatar stefanbuck commented on May 23, 2024

Exactly, the idea is to publish everything to npm in OctoLinker/OctoLinker/tree/master/packages. Until now there was no need since all packages are used by us only. As soon as github-inject is in there we have to start publishing.

If we want to preserve this use case, we could add a build process and publish bundled code.

Either that or we just assume that these days most project are using a bundler anyway. Maybe a bit harsh, I'm undecided.

from injection.

fregante avatar fregante commented on May 23, 2024

Exactly, the idea is to publish everything to npm

That misses the point, I can't star github-injection if it's part of a monorepo. This is sort of ok when it's babel and its plugins, but less ok when it's something unrelated.

from injection.

stefanbuck avatar stefanbuck commented on May 23, 2024

Now I get you point. That's indeed an issue and maybe I was overthinking the monorepo a bit. I know that some companies have a single repo for all there products / services. They argue that this way you can do global refactoring across different modules quite easily. I think I was driven by this idea.

With a monorepo we would also mess up PRs and Issues. Maybe this doesn't work for OSS that way.

@josephfrazier what's your thoughts on this?

from injection.

Related Issues (3)

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.