Closed FlorianWendelborn closed 1 year ago
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:
import
statements of a projectI 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.
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?
Any more interest in this @FlorianWendelborn or should I close the issue?
@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.
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!
Closing as stale / not high priority. Feel free to reopen!
Is there any way to set-up
alias-hq
CLI as a CI tool?Basically, I’d want to use GitLab pipelines to run
alias-hq
and fail if a path alias is not used, to enforce that the entire project always uses them.So, the requirements would be:
yarn run alias-hq --check
)Thanks for the tool BTW, really useful and well-done