GithubHelp home page GithubHelp logo

CI Integration about alias-hq HOT 6 CLOSED

davestewart avatar davestewart commented on May 18, 2024
CI Integration

from alias-hq.

Comments (6)

davestewart avatar davestewart commented on May 18, 2024 1

Sure. I'm also busy, but I'll leave this open and maybe find time to do it when I need a break from something else!

from alias-hq.

davestewart avatar davestewart commented on May 18, 2024

Hey Florian,

Thanks for the kind words!

So I don't know much about CLI / Pipelines, but if I understand you correctly, you'd like to:

  • reuse the existing (or have similar) codemod functionality which trawls the import statements of a project
  • to check they always use aliases rather than local paths (or, at least adhere to the logic that the shortest path is used)
  • and have this exposed via the command line and pass or fail in a manner than is appropriate for a build pipeline tool

I haven't worked on this for a good few months, but I don't see why that wouldn't be possible.

I don't have much time at the moment, which is a problem (I have an existing PR for renaming aliases which I've not touched in months too!)

I'd be happy for you to submit a PR though. The codemod side of things is surprisingly straightforward; I'd be happy to help you if you needed it.

from alias-hq.

davestewart avatar davestewart commented on May 18, 2024

Looking at file which sets up the source transforms:

If newPath is returned, it means the import / require could be simplified, so I presume at this point you would want to exit with code 1.

One of the surprisingly challenging bits of this project was working out how best to ask questions and how best to preview and report results, so I suspect you might also want to think about that, rather than just exiting?

from alias-hq.

davestewart avatar davestewart commented on May 18, 2024

Any more interest in this @FlorianWendelborn or should I close the issue?

from alias-hq.

FlorianWendelborn avatar FlorianWendelborn commented on May 18, 2024

@davestewart I’d say neither. I don’t have the time right now to develop this, but I still think it’s a useful/vital piece of what this software should be able to do. I’d hope that tagging it as Help Wanted, one day someone will have time to submit a PR.

from alias-hq.

davestewart avatar davestewart commented on May 18, 2024

Closing as stale / not high priority. Feel free to reopen!

from alias-hq.

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.