Replies: 1 comment 2 replies
-
Hi Joe! Thanks for your interest and your extensions. 🙂 This may seem odd, but it's kind of by design that Flit doesn't have any extension points. My aim is to have something simple, with as few ways to go wrong as possible, and my experience is that plugins always run counter to that - as soon as there's code from multiple projects running together, there's scope for incompatibilities. You can mitigate it by being careful with public vs. private APIs, versioned dependencies, and plenty of testing, but that's adding complexity to deal with complexity, and it's never perfect. But seemingly the lack of any plugin system hasn't stopped people from making plugins anyway, which is simultaneously maddening and flattering, and I don't know what to do about it. 😆 Perhaps I'll ask you a question: why build on Flit? When PEP 621 standardised most of the contents of I assume my rationale isn't why you're using Flit, if you're happily writing plugins for it. So what is the attraction of Flit over the various alternatives? |
Beta Was this translation helpful? Give feedback.
-
Hi there 👋
I maintain a couple of packages, that need several more build steps. Therefore, I have been writing a couple of extensions for flit recently. Like support for gettext or Sass.
However, I noticed that there currently isn't a good way to combine multiple plugins/extensions.
I'd love to have some form of registry for hooks. It doesn't need to be fancy, a simple list you can append functions to would suffice.
I will probably write a package for that. However, I wanted to pitch the idea upstream 🫡
Please reach out to me if that's something, you'd like me to contribute.
Cheers!
Joe
Beta Was this translation helpful? Give feedback.
All reactions