pantsbuild / pants

The Pants Build System
https://www.pantsbuild.org
Apache License 2.0
3.27k stars 626 forks source link

Dart/Flutter support for pants #19750

Open mister-rao opened 1 year ago

mister-rao commented 1 year ago

Flutter is taking over the UI development by storm. The ease of developing for multiple platforms with a single consistent codebase is amazing.

I'm currently using pants to manage my python/django backend.

If there was pants support for flutter I could add the frontend project to the same python monorepo instead of having to maintain another one.

Is it possible to add support for dart/flutter to pants?

There are native dart packages available to manage monorepos, but I was wondering if pants could support this.

benjyw commented 1 year ago

Hi! It is always possible to add support for most languages/frameworks. But, as always, it requires someone to step up and do the work. That person needs to be:

  1. Motivated.
  2. Experienced with the target language/framework, in this case Dart/Flutter, so they have an informed opinion of what Pants support should look like (for example, which goals should be supported and what each one should do).
  3. Understand Pants well enough to write such a plugin.

As far as I know, no one on the existing Pants maintainer team has much or any experience with Flutter (although I will toss to @sureshjoshi in case he's used it) and we're all stretched thin as it is.

But since this is an open-source project, anyone who's motivated can get involved. But if this is something you'd like to tackle, we'd be glad to help!

sureshjoshi commented 1 year ago

I haven't done much with Flutter or Dart unfortunately. I end up stick with native development, or KMM at this point 🤷🏽

As a first pass, maybe there's something you can use with adhoc_tool?

benjyw commented 1 year ago

@mister-rao Any interest in tackling this? Or at least writing a short design doc explaining what Dart/Flutter support should look like?

mister-rao commented 1 year ago

Yes! I'll make a design doc by this weekend or next. We'll review it and discuss how to move forward from there.